Refactor: replace hardcoded unit array size 7 with nd::MAX_UNITS
- Replace hardcoded with in NetDeck.ino (8 occurrences) - Add to nd_layout.h - Update test expectations in unit_tests.h and integration_tests.h from units[6] to units[7] to match the new reinforcement slot indexing This enables supporting more than 7 units in the future.
This commit is contained in:
@@ -105,7 +105,7 @@ TEST(integration/sever_during_trace_is_safe)
|
||||
handleKey('x'); // sever before arrival
|
||||
EXPECT(!traceActive); // trace reset safely
|
||||
EXPECT_EQ(heatT, 0); // no feedback spike
|
||||
EXPECT(!units[6].alive); // no reinforcement
|
||||
EXPECT(!units[7].alive); // no reinforcement
|
||||
}
|
||||
|
||||
TEST(integration/daemon_gating_messages)
|
||||
|
||||
Reference in New Issue
Block a user