Skip to content

Commit f8ec234

Browse files
Update testtokenize.cpp
1 parent 4cdec25 commit f8ec234

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

‎test/testtokenize.cpp‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3052,13 +3052,18 @@ class TestTokenizer : public TestFixture {
30523052
" return b;\n"
30533053
"}\n";
30543054
const char expected[] = "struct S {\n"
3055-
"bool f ( ) const ;\n"
3055+
"bool f1 ( ) const ;\n"
3056+
"bool f2 ( ) const ;\n"
30563057
"int g ( ) const ;\n"
30573058
"int x ; int y ;\n"
30583059
"} ;\n"
3059-
"bool S :: f ( ) const {\n"
3060+
"bool S :: f1 ( ) const {\n"
30603061
"const bool b = x ? ( g ( ) < 0 ) : 0 > y ;\n"
30613062
"return b ;\n"
3063+
"}\n"
3064+
"bool S :: f2 ( ) const {\n"
3065+
"const bool b = g ( ) < x ? x != y : 0 > y ;\n"
3066+
"return b ;\n"
30623067
"}";
30633068
ASSERT_EQUALS(expected, tokenizeAndStringify(code));
30643069
}

0 commit comments

Comments
 (0)