mirror of
https://github.com/roc-lang/roc.git
synced 2024-10-04 06:08:10 +03:00
Add a test case for List.dropAt at an index located in the middle of the list
This commit is contained in:
parent
3d9c4673af
commit
f21654a78e
@ -547,6 +547,11 @@ fn list_drop_at() {
|
||||
RocList::from_slice(&[2, 3]),
|
||||
RocList<i64>
|
||||
);
|
||||
assert_evals_to!(
|
||||
"List.dropAt [1, 2, 3] 1",
|
||||
RocList::from_slice(&[1, 3]),
|
||||
RocList<i64>
|
||||
);
|
||||
assert_evals_to!(
|
||||
"List.dropAt [0, 0, 0] 3",
|
||||
RocList::from_slice(&[0, 0, 0]),
|
||||
|
Loading…
Reference in New Issue
Block a user