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