mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-27 15:01:08 +00:00
Update and_gate.py (#8690)
* 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. * Update and_gate.py addressing issue #8632
This commit is contained in:
parent
91cc3a240f
commit
209a59ee56
|
@ -43,6 +43,8 @@ def test_and_gate() -> None:
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
test_and_gate()
|
||||||
|
print(and_gate(1, 0))
|
||||||
print(and_gate(0, 0))
|
print(and_gate(0, 0))
|
||||||
print(and_gate(0, 1))
|
print(and_gate(0, 1))
|
||||||
print(and_gate(1, 1))
|
print(and_gate(1, 1))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user