From: Daniel Kirschten Date: Mon, 20 May 2019 19:31:57 +0000 (+0200) Subject: Fixed GUITest: WireEnds used as outputs were created as input. X-Git-Url: https://mograsim.net/gitweb/?a=commitdiff_plain;h=5fbd016c4e4556ad44459c1c680cc2f7ba175069;hp=4be7eddcfc45e5e5794bd0dc1e2c2423fa43ec51;p=Mograsim.git Fixed GUITest: WireEnds used as outputs were created as input. --- diff --git a/era.mi/src/era/mi/logic/tests/GUITest.java b/era.mi/src/era/mi/logic/tests/GUITest.java index b93d4b6b..5610e838 100644 --- a/era.mi/src/era/mi/logic/tests/GUITest.java +++ b/era.mi/src/era/mi/logic/tests/GUITest.java @@ -41,10 +41,10 @@ public class GUITest extends JPanel ManualSwitch rIn = new ManualSwitch(r.createEnd()); ManualSwitch sIn = new ManualSwitch(s.createEnd()); - OrGate or1 = new OrGate(OR_DELAY, t2.createEnd(), r.createEnd(), nq.createEnd()); - OrGate or2 = new OrGate(OR_DELAY, t1.createEnd(), s.createEnd(), q.createEnd()); - NotGate not1 = new NotGate(NOT_DELAY, t2.createEnd(), q.createEnd()); - NotGate not2 = new NotGate(NOT_DELAY, t1.createEnd(), nq.createEnd()); + OrGate or1 = new OrGate(OR_DELAY, t2.createEnd(), r.createReadOnlyEnd(), nq.createReadOnlyEnd()); + OrGate or2 = new OrGate(OR_DELAY, t1.createEnd(), s.createReadOnlyEnd(), q.createReadOnlyEnd()); + NotGate not1 = new NotGate(NOT_DELAY, t2.createReadOnlyEnd(), q.createEnd()); + NotGate not2 = new NotGate(NOT_DELAY, t1.createReadOnlyEnd(), nq.createEnd()); Map switchMap = new HashMap<>();