summaryrefslogtreecommitdiffstats
path: root/src/test/CppTests
diff options
context:
space:
mode:
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"];