summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Schlosser <christoph@linux.com>2019-06-28 23:25:22 +0200
committerChristoph Schlosser <christoph@linux.com>2019-06-28 23:25:22 +0200
commitc79177e7990359be7cd28146b10f198bd4102b56 (patch)
tree0ca8b76e904224c227b7140420bf95d738b43e9a
parentb4193c57675c394af91aeb745e6e8175ca827a01 (diff)
downloaddoxdocgen-c79177e7990359be7cd28146b10f198bd4102b56.tar.gz
Negative 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 8d0d447..b218de9 100644
--- a/src/test/CppTests/Config.test.ts
+++ b/src/test/CppTests/Config.test.ts
@@ -181,4 +181,12 @@ suite("C++ - Configuration Tests", () => {
assert.equal("/**\n * @brief Short desc\n * \n * @tparam T I'm a template\n * @param bar Parameters everywhere\n * @param foobar Parameters everywhere\n * @return int Returns stuff\n */", result);
});
+ test("Negative alignment tests", () => {
+ testSetup.cfg.Generic.returnTemplate = "";
+
+ const result = testSetup.SetLines(["template<typename T>", "int foo(std::string bar, T foobar);"]).GetResult();
+ // tslint:disable-next-line:max-line-length
+ assert.equal("/**\n * @brief Short desc\n * \n * @tparam T I'm a template\n * @param bar Parameters everywhere\n * @param foobar Parameters everywhere\n */", result);
+ });
+
});