mirror of
https://github.com/twitter/the-algorithm-ml.git
synced 2024-11-16 21:29:24 +01:00
11 lines
211 B
Python
11 lines
211 B
Python
|
import tml.reader.utils as reader_utils
|
||
|
|
||
|
|
||
|
def test_rr():
|
||
|
options = ["a", "b", "c"]
|
||
|
rr = reader_utils.roundrobin(options)
|
||
|
for i, v in enumerate(rr):
|
||
|
assert v == options[i % 3]
|
||
|
if i > 4:
|
||
|
break
|