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:
Rohan Anand 2023-05-10 15:08:52 +05:30 committed by GitHub
parent 91cc3a240f
commit 209a59ee56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,6 +43,8 @@ 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))