Fix some tests

This commit is contained in:
Richard Feldman 2024-01-21 12:52:52 -05:00
parent a1656381c5
commit 632903bbde
No known key found for this signature in database
GPG key ID: F1F21AA5B1D9E43B
2 changed files with 2 additions and 17 deletions

View file

@ -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, ()>
);
}

View file

@ -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!(