Skip to content

Commit

Permalink
TranslatorSpec: fix 1 + 2 * 5 test
Browse files Browse the repository at this point in the history
  • Loading branch information
GreyCat committed Mar 8, 2024
1 parent 324f658 commit 6ac7252
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ class TranslatorSpec extends AnyFunSpec {

everybody("1 + 2 + 5", "((1 + 2) + 5)")

everybody("1 + 2 * 5", "((1 + 2) * 5)")
everybody("1 + 2 * 5", "(1 + (2 * 5))")

everybodyExcept("(1 + 2) / (7 * 8)", "((1 + 2) / (7 * 8))", Map(
JavaScriptCompiler -> "Math.floor((1 + 2) / (7 * 8))",
Expand Down

0 comments on commit 6ac7252

Please sign in to comment.