upd readme
This commit is contained in:
22
tracking/test_cases/q5/1-DiscreteDist-a1.test
Normal file
22
tracking/test_cases/q5/1-DiscreteDist-a1.test
Normal file
@ -0,0 +1,22 @@
|
||||
class: "OutputTest"
|
||||
success: "PASS"
|
||||
failure: "NO PASS"
|
||||
|
||||
# Python statements initializing variables for the test below.
|
||||
preamble: """
|
||||
import inference
|
||||
|
||||
dist = inference.DiscreteDistribution()
|
||||
dist['a'] = 0
|
||||
ans5 = dist.normalize()
|
||||
|
||||
# ans = map(float, [ans1, ans2, ans3, ans4])
|
||||
ans = map(float, [ans5 is None])
|
||||
"""
|
||||
|
||||
# A python expression to be evaluated. This expression must return the
|
||||
# same result for the student and instructor's code.
|
||||
|
||||
test: "ans"
|
||||
|
||||
|
Reference in New Issue
Block a user