Skip to content

Suggestion: Add a function call to the boolean_algebra/and_gate.py file. #8656

Closed
@code-dev05

Description

@code-dev05

What would you like to share?

In the lines 35 - 42, test_and_gate() function is defined.

def test_and_gate() -> None:
    """
    Tests the and_gate function
    """
    assert and_gate(0, 0) == 0
    assert and_gate(0, 1) == 0
    assert and_gate(1, 0) == 0
    assert and_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.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting triageAwaiting triage from a maintainer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions