Skip to content

Commit

Permalink
Adjust test expectations
Browse files Browse the repository at this point in the history
  • Loading branch information
srikanth-sankaran committed Nov 13, 2023
1 parent 63f137f commit 91912aa
Showing 1 changed file with 25 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,13 @@ public void test002() {
"----------\n" +
"1. ERROR in X.java (at line 3)\n" +
" if (obj instanceof (String s)) {\n" +
" ^^^^^^^^^^\n" +
"Syntax error on token \"instanceof\", ReferenceType expected after this token\n" +
" ^\n" +
"Syntax error on token \"(\", delete this token\n" +
"----------\n" +
"2. ERROR in X.java (at line 3)\n" +
" if (obj instanceof (String s)) {\n" +
" ^\n" +
"Syntax error on token \")\", delete this token\n" +
"----------\n");
}
public void test003() {
Expand All @@ -131,13 +136,28 @@ public void test003() {
"----------\n" +
"1. ERROR in X.java (at line 3)\n" +
" if (obj instanceof ((String s))) {\n" +
" ^\n" +
"Syntax error on token \"(\", invalid ReferenceType\n" +
" ^^^^^^^^^^\n" +
"Syntax error, insert \"Type\" to complete InstanceofClassic\n" +
"----------\n" +
"2. ERROR in X.java (at line 3)\n" +
" if (obj instanceof ((String s))) {\n" +
" ^^^^^^^^^^\n" +
"Syntax error, insert \") Statement\" to complete BlockStatements\n" +
"----------\n" +
"3. ERROR in X.java (at line 3)\n" +
" if (obj instanceof ((String s))) {\n" +
" ^^^^^^\n" +
"Syntax error on token \"String\", ( expected after this token\n" +
"----------\n" +
"4. ERROR in X.java (at line 3)\n" +
" if (obj instanceof ((String s))) {\n" +
" ^\n" +
"Syntax error on token \")\", delete this token\n" +
"Syntax error, insert \"AssignmentOperator Expression\" to complete Assignment\n" +
"----------\n" +
"5. ERROR in X.java (at line 3)\n" +
" if (obj instanceof ((String s))) {\n" +
" ^\n" +
"Syntax error, insert \";\" to complete Statement\n" +
"----------\n");
}
public void test007() {
Expand Down

0 comments on commit 91912aa

Please sign in to comment.