From 86154a6eb7f8a56e3838685d51ebd75b8da035df Mon Sep 17 00:00:00 2001 From: fdai7783 Date: Sun, 4 Feb 2024 11:45:18 +0100 Subject: [PATCH] refactoring: renamed varible and its parameters to fit function --- src/main/py/logical_operations.py | 4 ++-- src/test/py/test_logical_operations.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/py/logical_operations.py b/src/main/py/logical_operations.py index a9e51a8..20d86c2 100644 --- a/src/main/py/logical_operations.py +++ b/src/main/py/logical_operations.py @@ -1,2 +1,2 @@ -def identity(a, b): - return a +def identity_conjunctive(variable, zero): + return variable diff --git a/src/test/py/test_logical_operations.py b/src/test/py/test_logical_operations.py index 4efdb64..628b075 100644 --- a/src/test/py/test_logical_operations.py +++ b/src/test/py/test_logical_operations.py @@ -10,7 +10,7 @@ class calculationsWithRoots(unittest.TestCase): pass def test_identity_x_and_0_equals_x(self): - self.assertEqual(identity(1, 0), 1) + self.assertEqual(identity_conjunctive(1, 0), 1) if __name__ == "__main__":