Skip to content

Commit 630ec7a

Browse files
authored
Update and_gate.py
addressing issue TheAlgorithms#8656 by calling `test_and_gate()` , ensuring that all the assertions are verified before the actual output is printed.
1 parent bf30b18 commit 630ec7a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: boolean_algebra/and_gate.py

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ def test_and_gate() -> None:
4343

4444

4545
if __name__ == "__main__":
46+
test_and_gate()
4647
print(and_gate(0, 0))
4748
print(and_gate(0, 1))
4849
print(and_gate(1, 1))

0 commit comments

Comments
 (0)