From cd5f4ee6d59a16c5fc99c6deb681a325e0995c35 Mon Sep 17 00:00:00 2001 From: Christoph Schlosser Date: Sat, 22 Jun 2019 15:16:16 +0200 Subject: Add test for stripping trailing `*/` --- src/test/CppTests/Config.test.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/test/CppTests/Config.test.ts') diff --git a/src/test/CppTests/Config.test.ts b/src/test/CppTests/Config.test.ts index a4c96e6..1ef2a4d 100644 --- a/src/test/CppTests/Config.test.ts +++ b/src/test/CppTests/Config.test.ts @@ -153,4 +153,9 @@ suite("C++ - Configuration Tests", () => { const result = testSetup.SetLine("int createFooObject();").GetResult(); assert.equal("/**\n * @brief Test FooObject\n * \n * @return int \n */", result); }); + + test("Remove inserted '*/' from line", () => { + const result = testSetup.SetLines(["*/", "int foo();"]).GetResult(); + assert.equal("/**\n * @brief \n * \n * @return int \n */", result); + }); }); -- cgit v1.2.3