From 1e05501c1eac2d46677d0eb1bb3f8d63227cda38 Mon Sep 17 00:00:00 2001 From: edipretoro Date: Mon, 13 Jul 2026 22:33:52 +0200 Subject: [PATCH] Updating the test to reflect the implementation --- test_initcounter.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test_initcounter.py b/test_initcounter.py index 5e2527e..beae423 100644 --- a/test_initcounter.py +++ b/test_initcounter.py @@ -20,11 +20,11 @@ class TestInitCounters: m.oatop = 293 m.initcounters() - assert len(m.active_counters) == 1 - assert m.active_counters[0].top == 293 + assert len(m.active_counters) == 147 + assert m.active_counters[0].top == 2 assert m.active_counters[0].value == 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): """Test avec oatop = 294 (maxcounters + 1)"""