|
|
@ -10,28 +10,28 @@ class calculationsWithRoots(unittest.TestCase): |
|
|
|
pass |
|
|
|
|
|
|
|
def test_disconjunctive_identity_1_or_0_equals_x(self): |
|
|
|
self.assertEqual(identity_disconjunctive(1, "+", 0), 1) |
|
|
|
self.assertEqual(identity(1, "+", 0), 1) |
|
|
|
|
|
|
|
def test_disconjunctive_identity_1_or_1_equals_None(self): |
|
|
|
self.assertEqual(identity_disconjunctive(1, "+", 1), None) |
|
|
|
self.assertEqual(identity(1, "+", 1), None) |
|
|
|
|
|
|
|
def test_disconjunctive_identity_0_or_1_equals_None(self): |
|
|
|
self.assertEqual(identity_disconjunctive(0, "+", 1), 1) |
|
|
|
self.assertEqual(identity(0, "+", 1), 1) |
|
|
|
|
|
|
|
def test_disconjunctive_identity_0_or_0_equals_0(self): |
|
|
|
self.assertEqual(identity_disconjunctive(0, "+", 0), 0) |
|
|
|
self.assertEqual(identity(0, "+", 0), 0) |
|
|
|
|
|
|
|
def test_conjunctive_identity_0_and_0_equals_None(self): |
|
|
|
self.assertEqual(identity_conjunctive(0, ".", 0), None) |
|
|
|
self.assertEqual(identity(0, ".", 0), None) |
|
|
|
|
|
|
|
def test_conjunctive_identity_1_and_0_equals_None(self): |
|
|
|
self.assertEqual(identity_conjunctive(1, ".", 0), 0) |
|
|
|
self.assertEqual(identity(1, ".", 0), 0) |
|
|
|
|
|
|
|
def test_conjunctive_identity_0_and_1_equals_0(self): |
|
|
|
self.assertEqual(identity_conjunctive(0, ".", 1), 0) |
|
|
|
self.assertEqual(identity(0, ".", 1), 0) |
|
|
|
|
|
|
|
def test_conjunctive_identity_1_and_1_equals_1(self): |
|
|
|
self.assertEqual(identity_conjunctive(1, ".", 1), 1) |
|
|
|
self.assertEqual(identity(1, ".", 1), 1) |
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__": |
|
|
|