BaşlayınÜcretsiz Başlayın

Cover more test cases

What is the best set of tests (that covers more test cases) to validate the following division function?

def division(a, b):
    if b == 0:
        return ValueError
    return a / b

Each option is a set of function calls, all of which will be checked.

Bu egzersiz

Introduction to Testing in Python

kursunun bir parçasıdır
Kursu Görüntüle

Uygulamalı interaktif egzersiz

İnteraktif egzersizlerimizden biriyle teoriyi pratiğe dökün

Egzersizi başlat