Add a test case for List.dropAt at an index located in the middle of the list

This commit is contained in:
Aurélien Geron 2024-09-11 15:32:30 +12:00
parent 3d9c4673af
commit f21654a78e
No known key found for this signature in database
GPG Key ID: D20EE8E56BBE3EE7

View File

@ -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]),