use for loop in unit test

This commit is contained in:
Tobias Alexandra Platen 2025-10-14 18:50:29 +02:00
parent 540a91878c
commit 1ead550d13

View file

@ -49,7 +49,16 @@ fn test_main_memory() {
sim.advance_time(SimDuration::from_micros(1)); //panic here at simulation
dbg!(sim.read(sim.io().read_data)); // dbg! macro just displays the value you pass to it
for n in 0u64..4u64 {
sim.write(sim.io().addr, n);
// now wait 1us because why not
sim.advance_time(SimDuration::from_micros(1));
}
sim.flush_traces().unwrap(); // make sure everything is written to the output file
}
}