|
|
@ -9,12 +9,15 @@ class calculationsWithRoots(unittest.TestCase): |
|
|
|
def tearDown(self): |
|
|
|
pass |
|
|
|
|
|
|
|
def test_conjunctive_identity_1_and_0_equals_x(self): |
|
|
|
def test_disconjunctive_identity_1_and_0_equals_x(self): |
|
|
|
self.assertEqual(identity_conjunctive(1, 0), 1) |
|
|
|
|
|
|
|
def test_conjunctive_identity_1_and_1_equals_NULL(self): |
|
|
|
def test_disconjunctive_identity_1_and_1_equals_NULL(self): |
|
|
|
self.assertEqual(identity_conjunctive(1, 1), None) |
|
|
|
|
|
|
|
def test_disconjunctive_identity_1_and_1_equals_NULL(self): |
|
|
|
self.assertEqual(identity_conjunctive(0, 1), None) |
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__": |
|
|
|
unittest.main() |