mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 16:21:11 +00:00
Add a test case for List.dropAt at an index located in the middle of the list
This commit is contained in:
parent
3215a8f3d7
commit
033d87034c
1 changed files with 5 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue