TestTokenizer: Renamed test functions so they match the function names used in the Tokenizer (simplifyRoundCurlyParentheses)
This commit is contained in:
parent
e3be600479
commit
8d9ad2ae0d
|
@ -451,7 +451,7 @@ private:
|
|||
TEST_CASE(simplifyCompoundAssignment);
|
||||
|
||||
// x = ({ 123; }); => { x = 123; }
|
||||
TEST_CASE(simplifyAssignmentBlock);
|
||||
TEST_CASE(simplifyRoundCurlyParentheses);
|
||||
|
||||
TEST_CASE(simplifyOperatorName1);
|
||||
TEST_CASE(simplifyOperatorName2);
|
||||
|
@ -7287,7 +7287,7 @@ private:
|
|||
ASSERT_EQUALS("; x = g ( ) ; f ( x ) ;", tokenizeAndStringify(";f(x=g());"));
|
||||
}
|
||||
|
||||
void simplifyAssignmentBlock() {
|
||||
void simplifyRoundCurlyParentheses() {
|
||||
ASSERT_EQUALS("; x = 123 ;", tokenizeAndStringify(";x=({123;});"));
|
||||
ASSERT_EQUALS("; x = y ;", tokenizeAndStringify(";x=({y;});"));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue