diff options
| author | Christoph Schlosser <2466365+cschlosser@users.noreply.github.com> | 2020-10-03 17:15:04 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-03 17:15:04 +0200 |
| commit | 15dcabb5903b68bbc8b490b1d0e220d13acf63b7 (patch) | |
| tree | a62d3347ba3cf1c3044ca2b153f6374af56dec6c /src/test/CppTests | |
| parent | 2af50bd62c2e26975a46b499c1c687be42be80a1 (diff) | |
| download | doxdocgen-15dcabb5903b68bbc8b490b1d0e220d13acf63b7.tar.gz | |
Add custom tags to generic order (#173)
Diffstat (limited to 'src/test/CppTests')
| -rw-r--r-- | src/test/CppTests/Config.test.ts | 8 |
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); + }); + }); |