mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 15:21:12 +00:00
fix list passing
This commit is contained in:
parent
edfbd6242f
commit
889b189191
2 changed files with 4 additions and 4 deletions
|
@ -1710,7 +1710,7 @@ fn replace_unique_int_list() {
|
|||
r#"
|
||||
result = List.replace [ 12, 9, 7, 1, 5 ] 2 33
|
||||
when result is
|
||||
Ok {list, value} -> list
|
||||
Ok {list} -> list
|
||||
Err _ -> []
|
||||
"#
|
||||
),
|
||||
|
@ -1727,7 +1727,7 @@ fn replace_unique_int_list_get_old_value() {
|
|||
r#"
|
||||
result = List.replace [ 12, 9, 7, 1, 5 ] 2 33
|
||||
when result is
|
||||
Ok {list, value} -> value
|
||||
Ok {value} -> value
|
||||
Err _ -> -1
|
||||
"#
|
||||
),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue