0 votes
in Python by
A sample module named sample_module.py contained the following contents.

def mul(x, y):

    """Multiplies two given numbers and returns the product.

    >>> mul(6, 7)

    42

    >>> mul(-8, 7)

    >>> -56

    """

    return x * y

What is the expected output when you run the doctests using below command?

python -m doctest sample_module.py

Output stating 3 failures

Output stating 2 tests passed

Output stating 2 failures

Output stating 3 tests passed

1 Answer

0 votes
by
Output stating 2 failures

Related questions

+1 vote
asked May 23, 2020 in Python by sharadyadav1986
0 votes
asked Jun 30, 2020 in Python by GeorgeBell
...