Exemple #1
0
 def assert_test_case(self, in0, in1, out, test_id):
     a = NAndGate()
     a.set_inputs([in0, in1])
     a.execute()
     if out:
         self.assertTrue(a.get_output_at(0),
                         "Class NAndGate: " + test_id + " failed")
     else:
         self.assertFalse(a.get_output_at(0),
                          "Class NAndGate: " + test_id + " failed")
Exemple #2
0
 def testcase_00(self):
     a = NAndGate()
     self.assertTrue(a.get_output_at(0),
                     "Automatische initialisierung über virtuelle Methode")