intro2ai/p0_tutorial/test_cases/q2/food_price2.test

8 lines
370 B
Plaintext
Raw Normal View History

2021-10-12 02:45:38 +02:00
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', 4.0), ('pears',3.0), ('limes',2.0) ])"