summaryrefslogtreecommitdiffstats
path: root/src/test
diff options
context:
space:
mode:
authorChristoph Schlosser <2466365+cschlosser@users.noreply.github.com>2020-10-03 17:15:04 +0200
committerGitHub <noreply@github.com>2020-10-03 17:15:04 +0200
commit15dcabb5903b68bbc8b490b1d0e220d13acf63b7 (patch)
treea62d3347ba3cf1c3044ca2b153f6374af56dec6c /src/test
parent2af50bd62c2e26975a46b499c1c687be42be80a1 (diff)
downloaddoxdocgen-15dcabb5903b68bbc8b490b1d0e220d13acf63b7.tar.gz
Add custom tags to generic order (#173)
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);
+ });
+
});