intro2ai/p0_tutorial/test_cases/q2/food_price3.test

8 lines
373 B
Plaintext

class: "EvalTest"
success: "buyLotsOfFruit correctly computes the cost of the order"
failure: "buyLotsOfFruit must compute the correct cost of the order"
# A python expression to be evaluated. This expression must return the
# same result for the student and instructor's code.
test: "buyLotsOfFruit.buyLotsOfFruit([ ('apples', 1.25), ('pears',1.50), ('limes',1.75) ])"