tests/bus: idle cycle test

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2024-06-16 07:46:12 +05:30
parent a7d919eea0
commit 951fc40134

View File

@@ -200,4 +200,13 @@ TEST_CASE("rom", TAG) {
}
}
TEST_CASE_METHOD(BusFixture, "internal cycle", TAG) {
uint32_t cycles = bus->get_cycles();
bus->internal_cycle();
bus->internal_cycle();
CHECK(bus->get_cycles() == cycles + 2);
}
#undef TAG