Skip to content

Commit

Permalink
Convert snapshot test to runnable test
Browse files Browse the repository at this point in the history
  • Loading branch information
ospencer committed Apr 20, 2022
1 parent 5209215 commit 98c3d2f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 53 deletions.
52 changes: 0 additions & 52 deletions compiler/test/__snapshots__/pattern_matching.af0ac1b8.0.snapshot

This file was deleted.

6 changes: 5 additions & 1 deletion compiler/test/suites/pattern_matching.re
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,11 @@ describe("pattern matching", ({test, testSkip}) => {
// Aliases
assertSnapshot("alias_match_1", "match (true) { _ as p => p }");
assertSnapshot("alias_match_2", "match (true) { a as b => a && b }");
assertSnapshot("alias_match_3", "match (true) { true | false as p => p }");
assertRun(
"alias_match_3",
"match (true) { true | false as p => print(p) }",
"true\n",
);
assertSnapshot(
"alias_match_4",
"match (Some(5)) { Some(3 | 4 as a) => a, Some(_) | None => 5, _ => 6 }",
Expand Down

0 comments on commit 98c3d2f

Please sign in to comment.