From 13623ba4d382846d06d1dbb7b7896124ac0f4c7f Mon Sep 17 00:00:00 2001 From: fdai7783 Date: Sun, 4 Feb 2024 12:27:33 +0100 Subject: [PATCH] refactoring: renamed function fit functionality --- src/main/py/logical_operations.py | 2 +- src/test/py/test_logical_operations.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/py/logical_operations.py b/src/main/py/logical_operations.py index 6cbd64b..297746f 100644 --- a/src/main/py/logical_operations.py +++ b/src/main/py/logical_operations.py @@ -1,4 +1,4 @@ -def identity_conjunctive(variable, operator, zero): +def identity_disconjunctive(variable, operator, zero): if zero == 0 and operator == "+": return variable else: diff --git a/src/test/py/test_logical_operations.py b/src/test/py/test_logical_operations.py index 75d82e7..051ad51 100644 --- a/src/test/py/test_logical_operations.py +++ b/src/test/py/test_logical_operations.py @@ -10,16 +10,16 @@ class calculationsWithRoots(unittest.TestCase): pass def test_disconjunctive_identity_1_or_0_equals_x(self): - self.assertEqual(identity_conjunctive(1, "+", 0), 1) + self.assertEqual(identity_disconjunctive(1, "+", 0), 1) def test_disconjunctive_identity_1_or_1_equals_None(self): - self.assertEqual(identity_conjunctive(1, "+", 1), None) + self.assertEqual(identity_disconjunctive(1, "+", 1), None) def test_disconjunctive_identity_0_or_1_equals_None(self): - self.assertEqual(identity_conjunctive(0, "+", 1), None) + self.assertEqual(identity_disconjunctive(0, "+", 1), None) def test_disconjunctive_identity_0_or_0_equals_0(self): - self.assertEqual(identity_conjunctive(0, "+", 0), 0) + self.assertEqual(identity_disconjunctive(0, "+", 0), 0) if __name__ == "__main__":