diff options
| author | HO-COOH <42881734+HO-COOH@users.noreply.github.com> | 2021-05-07 00:15:36 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-06 18:15:36 +0200 |
| commit | 37f735ecdd426683a087c7e9fdb13779166b5c7a (patch) | |
| tree | b2cb8be99d8f9bcc7a9e0bdf0c3110ddd6ebfc95 /src/test/CppTests/Config.test.ts | |
| parent | 15f166329f3c8040a8aa3772dbb2fd4614a4a8b2 (diff) | |
| download | doxdocgen-37f735ecdd426683a087c7e9fdb13779166b5c7a.tar.gz | |
Fix tags in generic order not expanded (#217)
Diffstat (limited to 'src/test/CppTests/Config.test.ts')
| -rw-r--r-- | src/test/CppTests/Config.test.ts | 14 |
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"]; |