Add test for ignored pattern

This commit is contained in:
greg 2018-10-18 15:55:24 -07:00
parent 4b9c7e38dd
commit 3d00667caf
1 changed files with 11 additions and 0 deletions

View File

@ -563,4 +563,15 @@ if a { is true -> "x", is false -> "y" }
"#;
test_in_fresh_env!(source, "\"y\"");
}
#[test]
fn ignore_pattern() {
let source = r#"
type Option<T> = Some(T) | None
if Some(10) {
is _ -> "hella"
}
"#;
test_in_fresh_env!(source, "\"hella\"");
}
}