Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcus Roberts committed Jul 30, 2022
1 parent b35bc09 commit b86ce0b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions compiler/test/formatter_inputs/rationals.gr
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
let x = 3 * (2/3)

let y = 2/3 + 4

assert 4 * (2/3) == 8/3
5 changes: 5 additions & 0 deletions compiler/test/formatter_outputs/rationals.gr
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
let x = 3 * (2/3)

let y = 2/3 + 4

assert 4 * (2/3) == 8/3
1 change: 1 addition & 0 deletions compiler/test/suites/formatter.re
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,5 @@ describe("formatter", ({test, testSkip}) => {
assertFormatOutput("parens", "parens");
assertFormatOutput("windows", "windows");
assertFormatOutput("patterns", "patterns");
assertFormatOutput("rationals", "rationals");
});

0 comments on commit b86ce0b

Please sign in to comment.