mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-19 11:43:56 +00:00
Make sure to create reproducible emulator
This commit is contained in:
@@ -22,14 +22,14 @@ namespace test
|
||||
|
||||
TEST(EmulationTest, CountedEmulationIsAccurate)
|
||||
{
|
||||
auto emu = create_sample_emulator();
|
||||
auto emu = create_reproducible_sample_emulator();
|
||||
emu.start();
|
||||
|
||||
ASSERT_TERMINATED_SUCCESSFULLY(emu);
|
||||
|
||||
const auto executedInstructions = emu.get_executed_instructions();
|
||||
|
||||
auto new_emu = create_sample_emulator();
|
||||
auto new_emu = create_reproducible_sample_emulator();
|
||||
|
||||
constexpr auto offset = 1;
|
||||
const auto instructionsToExecute = executedInstructions - offset;
|
||||
|
||||
Reference in New Issue
Block a user