Updating the test to reflect the implementation

This commit is contained in:
2026-07-17 08:16:57 +02:00
committed by edipretoro
parent 1905df5943
commit f7e7554d5c
+3 -3
View File
@@ -20,11 +20,11 @@ class TestInitCounters:
m.oatop = 293 m.oatop = 293
m.initcounters() m.initcounters()
assert len(m.active_counters) == 1 assert len(m.active_counters) == 147
assert m.active_counters[0].top == 293 assert m.active_counters[0].top == 2
assert m.active_counters[0].value == 0 assert m.active_counters[0].value == 0
assert m.oacounter == 0 assert m.oacounter == 0
assert m.percounter == 0 # 293 / 293 + 1 = 2 (mais l'algo donne 1) assert m.percounter == 2
def test_initcounters_with_one_more_than_maxcounters(self): def test_initcounters_with_one_more_than_maxcounters(self):
"""Test avec oatop = 294 (maxcounters + 1)""" """Test avec oatop = 294 (maxcounters + 1)"""