Browse Source

refactoring: renamed varible and its parameters to fit function

remotes/origin/feature/feature-logical-operations
fdai7783 11 months ago
parent
commit
86154a6eb7
  1. 4
      src/main/py/logical_operations.py
  2. 2
      src/test/py/test_logical_operations.py

4
src/main/py/logical_operations.py

@ -1,2 +1,2 @@
def identity(a, b):
return a
def identity_conjunctive(variable, zero):
return variable

2
src/test/py/test_logical_operations.py

@ -10,7 +10,7 @@ class calculationsWithRoots(unittest.TestCase):
pass pass
def test_identity_x_and_0_equals_x(self): 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__": if __name__ == "__main__":

Loading…
Cancel
Save