summaryrefslogtreecommitdiffstats
path: root/src/test/CppTests/Templates.test.ts
diff options
context:
space:
mode:
authorChristoph Schlosser <2466365+cschlosser@users.noreply.github.com>2020-10-03 16:50:43 +0200
committerGitHub <noreply@github.com>2020-10-03 16:50:43 +0200
commit2af50bd62c2e26975a46b499c1c687be42be80a1 (patch)
tree184584c3294335e3b1039a76e1b25eaa6b05603b /src/test/CppTests/Templates.test.ts
parent7240272e98e615c5424856d00f4ab8a70e4cc821 (diff)
downloaddoxdocgen-2af50bd62c2e26975a46b499c1c687be42be80a1.tar.gz
Fix default value in tparams (#172)
Diffstat (limited to 'src/test/CppTests/Templates.test.ts')
-rw-r--r--src/test/CppTests/Templates.test.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/CppTests/Templates.test.ts b/src/test/CppTests/Templates.test.ts
index 07a2144..0c4e1b6 100644
--- a/src/test/CppTests/Templates.test.ts
+++ b/src/test/CppTests/Templates.test.ts
@@ -48,4 +48,11 @@ suite("C++ - Template tests", () => {
assert.equal("/**\n * @brief \n * \n * @tparam T \n * @tparam Args \n *"
+ " @param first \n * @param args \n * @return T \n */", result);
});
+
+ test("Default template param value", () => {
+ const result = testSetup.SetLine("template <bool is_foo=false, bool is_bar =true, bool is_nothrow = true>"
+ + "\nstruct Foo;").GetResult();
+ assert.equal("/**\n * @brief \n * \n * @tparam is_foo \n * @tparam is_bar \n *"
+ + " @tparam is_nothrow \n */", result);
+ });
});