mirror of
https://github.com/romanz/amodem.git
synced 2026-03-31 16:26:48 +08:00
Fix common.iterate()
This commit is contained in:
@@ -18,7 +18,7 @@ def test_iterate():
|
||||
assert iterlist(range(N), 3) == [
|
||||
(i, [i, i+1, i+2]) for i in range(0, N-2, 3)]
|
||||
|
||||
assert iterlist(range(N), 1, func=lambda b: -b) == [
|
||||
assert iterlist(range(N), 1, func=lambda b: -np.array(b)) == [
|
||||
(i, [-i]) for i in range(N)]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user