\r
import java.util.function.LongConsumer;\r
\r
-import era.mi.logic.Simulation;\r
import era.mi.logic.components.BitDisplay;\r
+import era.mi.logic.timeline.Timeline;\r
import era.mi.logic.types.Bit;\r
import era.mi.logic.wires.Wire.ReadEnd;\r
\r
public final class TestBitDisplay extends BitDisplay\r
{\r
\r
- public TestBitDisplay(ReadEnd in)\r
+ public TestBitDisplay(Timeline timeline, ReadEnd in)\r
{\r
- super(in);\r
+ super(timeline, in);\r
}\r
\r
public void assertDisplays(Bit... expected)\r
\r
public void assertAfterSimulationIs(Bit... expected)\r
{\r
- Simulation.TIMELINE.executeAll();\r
+ timeline.executeAll();\r
assertDisplays(expected);\r
}\r
\r
public void assertAfterSimulationIs(LongConsumer r, Bit... expected)\r
{\r
- while (Simulation.TIMELINE.hasNext())\r
+ while (timeline.hasNext())\r
{\r
- Simulation.TIMELINE.executeNext();\r
- r.accept(Simulation.TIMELINE.getSimulationTime());\r
+ timeline.executeNext();\r
+ r.accept(timeline.getSimulationTime());\r
}\r
assertDisplays(expected);\r
}\r