Regression test for #2147

Closes #2147
This commit is contained in:
Ayaz Hafiz 2022-08-10 16:06:01 -07:00
parent 1f45d13c67
commit 7aeb332060
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58

View file

@ -1192,3 +1192,15 @@ fn opaque_wrap_function() {
"[@A 1, @A 2, @A 3] : List (A U8)",
);
}
#[test]
fn dict_get_single() {
expect_success(
indoc!(
r#"
Dict.single 0 {a: 1, c: 2} |> Dict.get 0
"#
),
r#"Ok { a: 1, c: 2 } : Result { a : Num *, c : Num * } [KeyNotFound]*"#,
)
}