Fix repl eval of Str.toDec

Closes #5169
This commit is contained in:
Ayaz Hafiz 2023-03-21 12:21:37 -04:00
parent 9620f9e0e8
commit 6ea6aef0db
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
2 changed files with 15 additions and 0 deletions

View file

@ -1268,3 +1268,15 @@ fn enum_tag_union_in_list() {
r#"[E, F, G, H] : List [E, F, G, H]"#,
);
}
#[test]
fn str_to_dec() {
expect_success(
indoc!(
r#"
Str.toDec "1234.1234"
"#
),
r#"Ok 1234.1234 : Result Dec [InvalidNumStr]"#,
);
}