Skip to content

Commit

Permalink
Undo
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github committed Mar 4, 2024
1 parent e7fafc8 commit ae433cb
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions test/testsimplifyusing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -684,22 +684,22 @@ class TestSimplifyUsing : public TestFixture {
}

void simplifyUsing30() {
//{
// const char code[] = "using std::to_string;\n" // #8454
// "void f() {\n"
// " std::string str = to_string(1);\n"
// "}\n";
// const char expected[] = "void f ( ) { std :: string str ; str = std :: to_string ( 1 ) ; }";
// ASSERT_EQUALS(expected, tok(code, Platform::Type::Native, /*debugwarnings*/ true));
// ASSERT_EQUALS("", errout.str());
//}
//{
// const char code[] = "using std::cout, std::endl, std::cerr, std::ostringstream;\n"
// "cerr << \"abc\";\n";
// const char expected[] = "std :: cerr << \"abc\" ;";
// ASSERT_EQUALS(expected, tok(code, Platform::Type::Native, /*debugwarnings*/ true));
// ASSERT_EQUALS("", errout.str());
//}
{
const char code[] = "using std::to_string;\n" // #8454
"void f() {\n"
" std::string str = to_string(1);\n"
"}\n";
const char expected[] = "void f ( ) { std :: string str ; str = std :: to_string ( 1 ) ; }";
ASSERT_EQUALS(expected, tok(code, Platform::Type::Native, /*debugwarnings*/ true));
ASSERT_EQUALS("", errout.str());
}
{
const char code[] = "using std::cout, std::endl, std::cerr, std::ostringstream;\n"
"cerr << \"abc\";\n";
const char expected[] = "std :: cerr << \"abc\" ;";
ASSERT_EQUALS(expected, tok(code, Platform::Type::Native, /*debugwarnings*/ true));
ASSERT_EQUALS("", errout.str());
}
{
const char code[] = "using std::string_view_literals::operator\"\"sv;\n";
const char expected[] = "using std :: string_view_literals :: operator\"\"sv ;";
Expand Down

0 comments on commit ae433cb

Please sign in to comment.