summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Schlosser <christoph@linux.com>2019-06-22 15:16:16 +0200
committerChristoph Schlosser <christophschlosser@users.noreply.github.com>2019-06-22 15:30:39 +0200
commitcd5f4ee6d59a16c5fc99c6deb681a325e0995c35 (patch)
tree532bb25c39060b043b4bb5a73ef1eff5a9447dfd
parenta20fab8fc507b4072434d13e5158c86015d4cb42 (diff)
downloaddoxdocgen-cd5f4ee6d59a16c5fc99c6deb681a325e0995c35.tar.gz
Add test for stripping trailing `*/`
-rw-r--r--src/test/CppTests/Config.test.ts5
1 files changed, 5 insertions, 0 deletions
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);
+ });
});