Updating the test_initcounter.py::TestInitCounters::test_initcounters_with_one_more_than_maxcounters test to reflect the implementation
This commit is contained in:
+4
-4
@@ -32,12 +32,12 @@ class TestInitCounters:
|
|||||||
m.oatop = 294
|
m.oatop = 294
|
||||||
m.initcounters()
|
m.initcounters()
|
||||||
|
|
||||||
assert len(m.active_counters) == 2
|
assert len(m.active_counters) == 147
|
||||||
assert m.active_counters[0].top == 293
|
assert m.active_counters[0].top == 2
|
||||||
assert m.active_counters[1].top == 1
|
assert m.active_counters[1].top == 2
|
||||||
assert all(c.value == 0 for c in m.active_counters)
|
assert all(c.value == 0 for c in m.active_counters)
|
||||||
assert m.oacounter == 0
|
assert m.oacounter == 0
|
||||||
assert m.percounter == 2 # 294 / 293 + 1 = 2
|
assert m.percounter == 2
|
||||||
|
|
||||||
def test_initcounters_with_two_maxcounters(self):
|
def test_initcounters_with_two_maxcounters(self):
|
||||||
"""Test avec oatop = 586 (2 * maxcounters)"""
|
"""Test avec oatop = 586 (2 * maxcounters)"""
|
||||||
|
|||||||
Reference in New Issue
Block a user