in Python by (5.1k points)
A sample module named contained the following contents.

def mul(x, y):

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

    >>> mul(6, 7)


    >>> mul(-8, 7)

    >>> -56


    return x * y

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

python -m doctest

Output stating 3 failures

Output stating 2 tests passed

Output stating 2 failures

Output stating 3 tests passed

1 Answer

0 votes
by (5.1k points)
Ans is

Output stating 2 failures

Related questions

+1 vote
asked Jul 16, 2020 in Python by GeorgeBell (5.1k points)