@@ -162,7 +162,7 @@ class TestLibrary : public TestFixture {
162162
163163 TokenList tokenList (&settings);
164164 std::istringstream istr (" foo();" ); // <- too few arguments, not library function
165- tokenList.createTokens (istr, Standards::Language::CPP);
165+ ASSERT ( tokenList.createTokens (istr, Standards::Language::CPP) );
166166 Token::createMutualLinks (tokenList.front ()->next (), tokenList.back ()->previous ());
167167 tokenList.createAst ();
168168
@@ -186,7 +186,7 @@ class TestLibrary : public TestFixture {
186186 {
187187 TokenList tokenList (&settings);
188188 std::istringstream istr (" foo();" ); // <- too few arguments, not library function
189- tokenList.createTokens (istr, Standards::Language::CPP);
189+ ASSERT ( tokenList.createTokens (istr, Standards::Language::CPP) );
190190 Token::createMutualLinks (tokenList.front ()->next (), tokenList.back ()->previous ());
191191 tokenList.createAst ();
192192
@@ -195,7 +195,7 @@ class TestLibrary : public TestFixture {
195195 {
196196 TokenList tokenList (&settings);
197197 std::istringstream istr (" foo(a);" ); // <- library function
198- tokenList.createTokens (istr, Standards::Language::CPP);
198+ ASSERT ( tokenList.createTokens (istr, Standards::Language::CPP) );
199199 Token::createMutualLinks (tokenList.front ()->next (), tokenList.back ()->previous ());
200200 tokenList.createAst ();
201201
@@ -204,7 +204,7 @@ class TestLibrary : public TestFixture {
204204 {
205205 TokenList tokenList (&settings);
206206 std::istringstream istr (" foo(a, b);" ); // <- library function
207- tokenList.createTokens (istr, Standards::Language::CPP);
207+ ASSERT ( tokenList.createTokens (istr, Standards::Language::CPP) );
208208 Token::createMutualLinks (tokenList.front ()->next (), tokenList.back ()->previous ());
209209 tokenList.createAst ();
210210
@@ -213,7 +213,7 @@ class TestLibrary : public TestFixture {
213213 {
214214 TokenList tokenList (&settings);
215215 std::istringstream istr (" foo(a, b, c);" ); // <- too much arguments, not library function
216- tokenList.createTokens (istr, Standards::Language::CPP);
216+ ASSERT ( tokenList.createTokens (istr, Standards::Language::CPP) );
217217 Token::createMutualLinks (tokenList.front ()->next (), tokenList.back ()->previous ());
218218 tokenList.createAst ();
219219
0 commit comments