From 2af50bd62c2e26975a46b499c1c687be42be80a1 Mon Sep 17 00:00:00 2001 From: Christoph Schlosser <2466365+cschlosser@users.noreply.github.com> Date: Sat, 3 Oct 2020 16:50:43 +0200 Subject: Fix default value in tparams (#172) --- src/test/CppTests/Templates.test.ts | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/test') 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 " + + "\nstruct Foo;").GetResult(); + assert.equal("/**\n * @brief \n * \n * @tparam is_foo \n * @tparam is_bar \n *" + + " @tparam is_nothrow \n */", result); + }); }); -- cgit v1.2.3