clipboard-list-checkActivities

  1. Compare boundary testing, path coverage testing and faulty and abnormal data testing.

circle-exclamation

Compare

  1. Write test cases for boundary values for the following:

def is_safe_temperature(temp):
    return 0 <= temp <= 100

# TODO: Write test cases for boundary values
  1. Write test cases for path coverage for the following:

def ticket_price(age):
    if age < 5:
        return "Free"
    elif 5 <= age <= 17:
        return "$5"
    elif 18 <= age <= 64:
        return "$10"
    else:
        return "Senior Discount - $7"

# TODO: Write test cases for all paths
  1. Write test cases for faulty and abnormal data for the following:

Last updated