Skip to content

Commit

Permalink
Fix invalid do/while syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
bdw429s committed Oct 18, 2023
1 parent e769b37 commit bec94d5
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions src/test/java/TestCases/phase1/CoreLangTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -271,15 +271,14 @@ public void testBreakDoWhile() {

instance.executeSource(
"""
do {
result = 1;
} while( true ) {
result = variables.result + 1;
if( result > "10" ) {
break;
}
}
""",
result = 1;
do {
result = variables.result + 1;
if( result > "10" ) {
break;
}
} while( true )
""",
context );
assertThat( variables.dereference( result, false ) ).isEqualTo( 11 );

Expand Down

0 comments on commit bec94d5

Please sign in to comment.