From 15dcabb5903b68bbc8b490b1d0e220d13acf63b7 Mon Sep 17 00:00:00 2001 From: Christoph Schlosser <2466365+cschlosser@users.noreply.github.com> Date: Sat, 3 Oct 2020 17:15:04 +0200 Subject: Add custom tags to generic order (#173) --- src/test/CppTests/Config.test.ts | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/test') 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); + }); + }); -- cgit v1.2.3