mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 15:21:12 +00:00
switch from pair to record and change name to ListReplaceUnsafe
This commit is contained in:
parent
27b47713aa
commit
dddf8ff785
8 changed files with 29 additions and 25 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 (Pair newList _) -> newList
|
||||
Ok {list, value} -> 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 (Pair _ oldValue) -> oldValue
|
||||
Ok {list, value} -> value
|
||||
Err _ -> -1
|
||||
"#
|
||||
),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue