Beispiel #1
0
 def testcase_01(self):
     a = AndGate()
     a.__Input0 = False
     a.__Input1 = False
     a.execute()
     self.assertFalse(a.Output, "Class ANDGATE: Testcase 1 failed.")
Beispiel #2
0
 def testcase_08(self):
     a = AndGate()
     a.Input0 = True
     a.Input1 = True
     a.execute()
     self.assertTrue(a.Output, "Class ANDGATE: Testcase 8 failed.")
Beispiel #3
0
 def testcase_07(self):
     a = AndGate()
     a.Input0 = False
     a.Input1 = True
     a.execute()
     self.assertFalse(a.Output, "Class ANDGATE: Testcase 7 failed.")