[hal] Initialize DIO to true in sim (#6670)

This commit is contained in:
Gold856
2024-05-28 00:18:19 -04:00
committed by GitHub
parent 76685fe7e8
commit 0ad4cd69d0
3 changed files with 9 additions and 8 deletions

View File

@@ -72,13 +72,13 @@ class DIOSimTest {
BooleanCallback valueCallback = new BooleanCallback();
try (CallbackStore cb = sim.registerValueCallback(valueCallback, false)) {
assertFalse(output.get());
assertFalse(sim.getValue());
assertTrue(output.get());
assertTrue(sim.getValue());
assertFalse(valueCallback.wasTriggered());
output.set(true);
output.set(false);
assertTrue(valueCallback.wasTriggered());
assertTrue(valueCallback.getSetValue());
assertFalse(valueCallback.getSetValue());
}
}
}