summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEddy Pedroni <epedroni@pm.me>2024-09-24 14:18:27 +0200
committerEddy Pedroni <epedroni@pm.me>2024-09-24 14:18:27 +0200
commitb3ba811610bf1a6ded287d8fe6df757508d01fa4 (patch)
tree578627ffc79c017448f3e2f778d46df9a53811e9 /src
parent3028915877f71e788325a93c00a84b46f6c47a54 (diff)
Scheduler update implementation
Diffstat (limited to 'src')
-rw-r--r--src/scheduler_brutal_unittest.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/scheduler_brutal_unittest.py b/src/scheduler_brutal_unittest.py
index 1ee6402..adfb417 100644
--- a/src/scheduler_brutal_unittest.py
+++ b/src/scheduler_brutal_unittest.py
@@ -15,7 +15,8 @@ def test_stateUpdate():
uut = UUT(cards, state)
- result = {0: 1, 1: 0}
+ # Unknown IDs in the result are silently ignored
+ result = {0: 1, 1: 0, 3: 0}
expected_state = {0: [0, 1, 1], 1: [0, 0, 0], 2: [0, 1, None]}
uut.update(result)