From 630ec7a09ca74118b67ceec73fed9327a974daf7 Mon Sep 17 00:00:00 2001 From: Rohan Anand <96521078+rohan472000@users.noreply.github.com> Date: Tue, 25 Apr 2023 00:21:47 +0530 Subject: [PATCH 1/2] Update and_gate.py addressing issue #8656 by calling `test_and_gate()` , ensuring that all the assertions are verified before the actual output is printed. --- boolean_algebra/and_gate.py | 1 + 1 file changed, 1 insertion(+) diff --git a/boolean_algebra/and_gate.py b/boolean_algebra/and_gate.py index cbbcfde79f33..56c21e9f376c 100644 --- a/boolean_algebra/and_gate.py +++ b/boolean_algebra/and_gate.py @@ -43,6 +43,7 @@ def test_and_gate() -> None: if __name__ == "__main__": + test_and_gate() print(and_gate(0, 0)) print(and_gate(0, 1)) print(and_gate(1, 1)) From f10d25bc43e7efc9a8ff090b89f84a3d0d42106c Mon Sep 17 00:00:00 2001 From: Rohan Anand <96521078+rohan472000@users.noreply.github.com> Date: Tue, 25 Apr 2023 00:25:16 +0530 Subject: [PATCH 2/2] Update and_gate.py addressing issue #8632 --- boolean_algebra/and_gate.py | 1 + 1 file changed, 1 insertion(+) diff --git a/boolean_algebra/and_gate.py b/boolean_algebra/and_gate.py index 56c21e9f376c..834116772ee7 100644 --- a/boolean_algebra/and_gate.py +++ b/boolean_algebra/and_gate.py @@ -44,6 +44,7 @@ def test_and_gate() -> None: if __name__ == "__main__": test_and_gate() + print(and_gate(1, 0)) print(and_gate(0, 0)) print(and_gate(0, 1)) print(and_gate(1, 1))