summaryrefslogtreecommitdiffstats
path: root/src/test/CppTests
diff options
context:
space:
mode:
authorHO-COOH <42881734+HO-COOH@users.noreply.github.com>2021-05-07 00:15:36 +0800
committerGitHub <noreply@github.com>2021-05-06 18:15:36 +0200
commit37f735ecdd426683a087c7e9fdb13779166b5c7a (patch)
treeb2cb8be99d8f9bcc7a9e0bdf0c3110ddd6ebfc95 /src/test/CppTests
parent15f166329f3c8040a8aa3772dbb2fd4614a4a8b2 (diff)
downloaddoxdocgen-37f735ecdd426683a087c7e9fdb13779166b5c7a.tar.gz
Fix tags in generic order not expanded (#217)
Diffstat (limited to 'src/test/CppTests')
-rw-r--r--src/test/CppTests/Config.test.ts14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/CppTests/Config.test.ts b/src/test/CppTests/Config.test.ts
index ec52c61..59a92ef 100644
--- a/src/test/CppTests/Config.test.ts
+++ b/src/test/CppTests/Config.test.ts
@@ -235,6 +235,20 @@ suite("C++ - Configuration Tests", () => {
assert.strictEqual("/**\n * @note\n */", result);
});
+ test("Custom tag expansion in function", () => {
+ testSetup.cfg = new Config();
+ testSetup.cfg.Generic.order = ["custom"];
+ testSetup.cfg.Generic.customTags = [
+ "@author {author}",
+ "@date {date}",
+ "@note {email}",
+ ];
+ testSetup.cfg.Generic.useGitUserName = true;
+ testSetup.cfg.Generic.useGitUserEmail = true;
+ const result = testSetup.SetLine("void foo();").GetResult();
+ assert.notStrictEqual("/**\n * @author {author}\n * @date {date}\n * @note {email}\n */", result);
+ });
+
test("Env variable", () => {
testSetup.cfg = new Config();
testSetup.cfg.Generic.order = ["custom"];