fix: a star in docs
This commit is contained in:
26
logic/test_cases/q2/atMostOneEff.test
Normal file
26
logic/test_cases/q2/atMostOneEff.test
Normal file
@ -0,0 +1,26 @@
|
||||
class: "LogicTest"
|
||||
success: "PASS"
|
||||
failure: "NO PASS"
|
||||
|
||||
# Python statements initializing variables for the test below.
|
||||
preamble: """
|
||||
import logic
|
||||
logic.Expr.counter = 0
|
||||
|
||||
A = logic.PropSymbolExpr('A');
|
||||
B = logic.PropSymbolExpr('B');
|
||||
C = logic.PropSymbolExpr('C');
|
||||
D = logic.PropSymbolExpr('D');
|
||||
symbols = [A, B, C, D]
|
||||
|
||||
atmost1 = logicPlan.atMostOne(symbols)
|
||||
num_nodes = logic.Expr.counter
|
||||
|
||||
ans = [num_nodes]
|
||||
"""
|
||||
|
||||
# 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