mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 22:09:09 +00:00
parent
9620f9e0e8
commit
6ea6aef0db
2 changed files with 15 additions and 0 deletions
|
@ -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]"#,
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue