feat: p0 and p1
This commit is contained in:
2
tutorial/test_cases/q2/CONFIG
Normal file
2
tutorial/test_cases/q2/CONFIG
Normal file
@ -0,0 +1,2 @@
|
||||
max_points: "1"
|
||||
class: "PassAllTestsQuestion"
|
3
tutorial/test_cases/q2/food_price1.solution
Normal file
3
tutorial/test_cases/q2/food_price1.solution
Normal file
@ -0,0 +1,3 @@
|
||||
# This is the solution file for test_cases/q2/food_price1.test.
|
||||
# The result of evaluating the test must equal the below when cast to a string.
|
||||
result: "12.25"
|
7
tutorial/test_cases/q2/food_price1.test
Normal file
7
tutorial/test_cases/q2/food_price1.test
Normal file
@ -0,0 +1,7 @@
|
||||
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', 2.0), ('pears',3.0), ('limes',4.0) ])"
|
3
tutorial/test_cases/q2/food_price2.solution
Normal file
3
tutorial/test_cases/q2/food_price2.solution
Normal file
@ -0,0 +1,3 @@
|
||||
# This is the solution file for test_cases/q2/food_price2.test.
|
||||
# The result of evaluating the test must equal the below when cast to a string.
|
||||
result: "14.75"
|
7
tutorial/test_cases/q2/food_price2.test
Normal file
7
tutorial/test_cases/q2/food_price2.test
Normal file
@ -0,0 +1,7 @@
|
||||
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) ])"
|
3
tutorial/test_cases/q2/food_price3.solution
Normal file
3
tutorial/test_cases/q2/food_price3.solution
Normal file
@ -0,0 +1,3 @@
|
||||
# This is the solution file for test_cases/q2/food_price3.test.
|
||||
# The result of evaluating the test must equal the below when cast to a string.
|
||||
result: "6.4375"
|
7
tutorial/test_cases/q2/food_price3.test
Normal file
7
tutorial/test_cases/q2/food_price3.test
Normal file
@ -0,0 +1,7 @@
|
||||
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) ])"
|
Reference in New Issue
Block a user