Skip to content

Commit

Permalink
found the exact operator at fault
Browse files Browse the repository at this point in the history
  • Loading branch information
AjaniBilby committed Mar 24, 2024
1 parent b95a4a6 commit 1ddb781
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/e2e/compiler/numeric.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,18 @@ fn main(): i32 {
return 29;
};
if ( -2.5 % 2.0 * -3.0 != 10.0 - 1.0 / 2.0 % 10.0 - 8.0 ) {
if ( (-2.5 % 2.0) * -3.0 != 10.0 - ( 1.0 / 2.0 % 10.0 ) - 8.0 ) {
return 33;
};
if ( -2.5 % 2.0 * -3.0 != 10.0 - ( 1.0 / 2.0 % 10.0 ) - 8.0 ) {
return 37;
};
if ( -2.5 % 2.0 * -3.0 != 10.0 - 1.0 / 2.0 % 10.0 - 8.0 ) {
return 41;
};
return 36;
}`;

Expand Down

0 comments on commit 1ddb781

Please sign in to comment.