mirror of
https://github.com/romanz/amodem.git
synced 2026-02-24 16:18:12 +08:00
common: move izip() from recv module and refactor it a bit
This commit is contained in:
@@ -60,3 +60,8 @@ def test_saturation():
|
||||
assert False
|
||||
except common.SaturationError as e:
|
||||
assert e.args == (max(x),)
|
||||
|
||||
def test_izip():
|
||||
x = range(10)
|
||||
y = range(-10, 0)
|
||||
assert list(common.izip([x, y])) == list(zip(x, y))
|
||||
|
||||
Reference in New Issue
Block a user