Skip to content

Commit eec21f9

Browse files
committed
combine test cases
1 parent f805e9e commit eec21f9

1 file changed

Lines changed: 24 additions & 28 deletions

File tree

‎test/testsimplifyusing.cpp‎

Lines changed: 24 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,6 @@ class TestSimplifyUsing : public TestFixture {
8080
TEST_CASE(simplifyUsing40);
8181
TEST_CASE(simplifyUsing41);
8282
TEST_CASE(simplifyUsing42);
83-
TEST_CASE(simplifyUsing43);
84-
TEST_CASE(simplifyUsing44);
85-
TEST_CASE(simplifyUsing45);
8683

8784
TEST_CASE(simplifyUsing8970);
8885
TEST_CASE(simplifyUsing8971);
@@ -961,31 +958,30 @@ class TestSimplifyUsing : public TestFixture {
961958
}
962959

963960
void simplifyUsing42() {
964-
const char code[] = "using A = bool;\n"
965-
"template<typename T> A func() {}\n";
966-
const char expected[] = "template < typename T > bool func ( ) { }";
967-
ASSERT_EQUALS(expected, tok(code));
968-
}
969-
970-
void simplifyUsing43() {
971-
const char code[] = "using A = bool;\n"
972-
"template<typename A> A func() {}\n";
973-
const char expected[] = "template < typename A > A func ( ) { }";
974-
ASSERT_EQUALS(expected, tok(code));
975-
}
976-
977-
void simplifyUsing44() {
978-
const char code[] = "using A = bool;\n"
979-
"template<typename T> class C { A x; }\n";
980-
const char expected[] = "template < typename T > class C { bool x ; }";
981-
ASSERT_EQUALS(expected, tok(code));
982-
}
983-
984-
void simplifyUsing45() {
985-
const char code[] = "using A = bool;\n"
986-
"template<typename A> class C { A x; }\n";
987-
const char expected[] = "template < typename A > class C { A x ; }";
988-
ASSERT_EQUALS(expected, tok(code));
961+
{
962+
const char code[] = "using A = bool;\n"
963+
"template<typename T> A func() {}\n";
964+
const char expected[] = "template < typename T > bool func ( ) { }";
965+
ASSERT_EQUALS(expected, tok(code));
966+
}
967+
{
968+
const char code[] = "using A = bool;\n"
969+
"template<typename A> A func() {}\n";
970+
const char expected[] = "template < typename A > A func ( ) { }";
971+
ASSERT_EQUALS(expected, tok(code));
972+
}
973+
{
974+
const char code[] = "using A = bool;\n"
975+
"template<typename T> class C { A x; }\n";
976+
const char expected[] = "template < typename T > class C { bool x ; }";
977+
ASSERT_EQUALS(expected, tok(code));
978+
}
979+
{
980+
const char code[] = "using A = bool;\n"
981+
"template<typename A> class C { A x; }\n";
982+
const char expected[] = "template < typename A > class C { A x ; }";
983+
ASSERT_EQUALS(expected, tok(code));
984+
}
989985
}
990986

991987
void simplifyUsing8970() {

0 commit comments

Comments
 (0)