diff --git a/test/testsimplifytemplate.cpp b/test/testsimplifytemplate.cpp index be309a384..fc056a4ce 100644 --- a/test/testsimplifytemplate.cpp +++ b/test/testsimplifytemplate.cpp @@ -1169,6 +1169,14 @@ private: ASSERT_EQUALS(1U, templateParameters(" x;")); ASSERT_EQUALS(1U, templateParameters(" x;")); ASSERT_EQUALS(0U, templateParameters(">x;")); + ASSERT_EQUALS(1U, templateParameters(" x;")); + ASSERT_EQUALS(0U, templateParameters("<...> x;")); + ASSERT_EQUALS(0U, templateParameters(" x;")); // Invalid syntax + ASSERT_EQUALS(1U, templateParameters(" x;")); + ASSERT_EQUALS(0U, templateParameters(" x;")); // Invalid syntax + ASSERT_EQUALS(2U, templateParameters(" x;")); + TODO_ASSERT_EQUALS(1U, 0U, templateParameters(" x;")); // Mishandled valid syntax + TODO_ASSERT_EQUALS(2U, 0U, templateParameters(" x;")); // Mishandled valid syntax } void templateParameters1() {