mirror of
https://github.com/roc-lang/roc.git
synced 2025-11-25 21:37:48 +00:00
Fix some tests
This commit is contained in:
parent
a1656381c5
commit
632903bbde
2 changed files with 2 additions and 17 deletions
|
|
@ -1371,11 +1371,11 @@ fn str_to_nat() {
|
|||
assert_evals_to!(
|
||||
indoc!(
|
||||
r#"
|
||||
Str.toNat "1"
|
||||
Str.toU64 "1"
|
||||
"#
|
||||
),
|
||||
RocResult::ok(1),
|
||||
RocResult<usize, ()>
|
||||
RocResult<u64, ()>
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1028,21 +1028,6 @@ fn str_trim_end_small_to_small_shared() {
|
|||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn str_to_nat() {
|
||||
assert_evals_to!(
|
||||
indoc!(
|
||||
r#"
|
||||
when Str.toNat "1" is
|
||||
Ok n -> n
|
||||
Err _ -> 0
|
||||
"#
|
||||
),
|
||||
1,
|
||||
usize
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn str_to_i128() {
|
||||
assert_evals_to!(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue