Skip to content

Commit 630e490

Browse files
committed
Convert snapshot test to runnable test
1 parent 742becf commit 630e490

File tree

2 files changed

+5
-53
lines changed

2 files changed

+5
-53
lines changed

compiler/test/__snapshots__/pattern_matching.af0ac1b8.0.snapshot

Lines changed: 0 additions & 52 deletions
This file was deleted.

compiler/test/suites/pattern_matching.re

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,11 @@ describe("pattern matching", ({test, testSkip}) => {
228228
// Aliases
229229
assertSnapshot("alias_match_1", "match (true) { _ as p => p }");
230230
assertSnapshot("alias_match_2", "match (true) { a as b => a && b }");
231-
assertSnapshot("alias_match_3", "match (true) { true | false as p => p }");
231+
assertRun(
232+
"alias_match_3",
233+
"match (true) { true | false as p => print(p) }",
234+
"true\n",
235+
);
232236
assertSnapshot(
233237
"alias_match_4",
234238
"match (Some(5)) { Some(3 | 4 as a) => a, Some(_) | None => 5, _ => 6 }",

0 commit comments

Comments
 (0)