Skip to content

Commit d5de4ad

Browse files
committed
🧪 Add test for list index swapping
1 parent 3e659c6 commit d5de4ad

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
let l = [0, 1];
2+
l[0], l[1] = l[1], l[0];
3+
assert_eq(l, [1,0]);

0 commit comments

Comments
 (0)