Example #1
0
 def testcase_04(self):
     a = OrGate()
     a.Input0 = True
     a.Input1 = True
     a.execute()
     self.assertEqual(True, a.Output, "Class OrGate Testcase 4 failed.")
Example #2
0
 def testcase_01(self):
     a = OrGate()
     a.Input0 = False
     a.Input1 = False
     a.execute()
     self.assertEqual(False, a.Output, "Class OrGate Testcase 1 failed.")