Skip to content

Commit b1a82e2

Browse files
Update testtokenize.cpp
1 parent 79a0d7d commit b1a82e2

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

test/testtokenize.cpp

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5288,12 +5288,7 @@ class TestTokenizer : public TestFixture {
52885288
"if ( ! p ) {\n"
52895289
"throw std :: runtime_error ( \"abc\" ) ; }\n"
52905290
"}";
5291-
TODO_ASSERT_EQUALS(expected,
5292-
"void f ( const std :: unique_ptr < int > & p ) {\n"
5293-
"if ( ! p ) {\n"
5294-
"throw runtime_error ( \"abc\" ) ; }\n"
5295-
"}",
5296-
tokenizeAndStringify(code));
5291+
ASSERT_EQUALS(expected, tokenizeAndStringify(code));
52975292
}
52985293

52995294
{
@@ -5315,6 +5310,12 @@ class TestTokenizer : public TestFixture {
53155310
"}";
53165311
ASSERT_EQUALS(expected, tokenizeAndStringify(code));
53175312
}
5313+
{
5314+
const char code[] = "using namespace std;\n"
5315+
"string_view f() { return string(); }\n";
5316+
expected = "std :: string_view f ( ) { return std :: string ( ) ; }";
5317+
ASSERT_EQUALS(expected, tokenizeAndStringify(code));
5318+
}
53185319
}
53195320

53205321
void microsoftMemory() {

0 commit comments

Comments
 (0)