You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the lines 35 - 42, test_and_gate() function is defined.
deftest_and_gate() ->None:
""" Tests the and_gate function """assertand_gate(0, 0) ==0assertand_gate(0, 1) ==0assertand_gate(1, 0) ==0assertand_gate(1, 1) ==1
But it is never called during the entire run time of the program.
Therefore, I would suggest adding a function call test_and_gate() between lines 45 and 46 to first verify all assertions before any real output.