Skip to content

Commit 5dec0ca

Browse files
committed
test with bare range too
1 parent e782d22 commit 5dec0ca

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

unpythonic/tests/test_fup.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ def runtests():
7878
test[tup == (1, 2, 3, 4, 5)]
7979
test[out == (4, 3, 2, 1, 0)]
8080

81+
out = fupdate(tup, slice(None, None, -1), range(5)) # no tuple() needed
82+
test[out == (4, 3, 2, 1, 0)]
83+
8184
with testset("multiple individual items"):
8285
tup = (1, 2, 3, 4, 5)
8386
out = fupdate(tup, (1, 2, 3), (17, 23, 42))

0 commit comments

Comments
 (0)