Initial commit

This commit is contained in:
Arjun Patel
2019-02-20 15:09:59 -08:00
commit 6577e0cbea
59 changed files with 2480 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
class: "EvalTest"
success: "shopSmart(order, shops) selects the cheapest shop"
failure: "shopSmart(order, shops) must select the cheapest shop"
# Python statements initializing variables for the test below.
preamble: """
import shop
dir1 = {'apples': 2.0, 'oranges':1.0}
shop1 = shop.FruitShop('shop1',dir1)
dir2 = {'apples': 1.0, 'oranges': 5.0}
shop2 = shop.FruitShop('shop2',dir2)
shops = [shop1, shop2]
order = [('apples',3.0)]
ans = shopSmart.shopSmart(order, shops)
"""
# A python expression to be evaluated. This expression must return the
# same result for the student and instructor's code.
test: "ans"