summaryrefslogtreecommitdiffstats
path: root/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'src/test')
-rw-r--r--src/test/CppTests/Config.test.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/CppTests/Config.test.ts b/src/test/CppTests/Config.test.ts
index 1769414..3915f11 100644
--- a/src/test/CppTests/Config.test.ts
+++ b/src/test/CppTests/Config.test.ts
@@ -219,4 +219,12 @@ suite("C++ - Configuration Tests", () => {
assert.equal("/**\n * @brief \n * \n * @param networkstatus \n */", result);
});
+ test("Custom tag", () => {
+ testSetup.cfg = new Config();
+ testSetup.cfg.Generic.order = ["custom"];
+ testSetup.cfg.Generic.customTags = ["@note"];
+ const result = testSetup.SetLine("void foo();").GetResult();
+ assert.equal("/**\n * @note\n */", result);
+ });
+
});