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 1 test passed

Output stating 2 tests passed

No output

Output stating 1 failure

1 Answer

0 votes
by
No output

Related questions

+1 vote
asked May 23, 2020 in Python by sharadyadav1986
+1 vote
asked Jul 16, 2020 in Python by GeorgeBell
...