Skip to content

Commit 209a59e

Browse files
authored
Update and_gate.py (TheAlgorithms#8690)
* 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. * Update and_gate.py addressing issue TheAlgorithms#8632
1 parent 91cc3a2 commit 209a59e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: boolean_algebra/and_gate.py

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

4444

4545
if __name__ == "__main__":
46+
test_and_gate()
47+
print(and_gate(1, 0))
4648
print(and_gate(0, 0))
4749
print(and_gate(0, 1))
4850
print(and_gate(1, 1))

0 commit comments

Comments
 (0)