feat: p0 and p1
This commit is contained in:
2
tutorial/test_cases/q1/CONFIG
Normal file
2
tutorial/test_cases/q1/CONFIG
Normal file
@ -0,0 +1,2 @@
|
||||
max_points: "1"
|
||||
class: "PassAllTestsQuestion"
|
3
tutorial/test_cases/q1/addition1.solution
Normal file
3
tutorial/test_cases/q1/addition1.solution
Normal file
@ -0,0 +1,3 @@
|
||||
# This is the solution file for test_cases/q1/addition1.test.
|
||||
# The result of evaluating the test must equal the below when cast to a string.
|
||||
result: "2"
|
7
tutorial/test_cases/q1/addition1.test
Normal file
7
tutorial/test_cases/q1/addition1.test
Normal file
@ -0,0 +1,7 @@
|
||||
class: "EvalTest"
|
||||
success: "add(a,b) returns the sum of a and b"
|
||||
failure: "add(a,b) must return the sum of a and b"
|
||||
|
||||
# A python expression to be evaluated. This expression must return the
|
||||
# same result for the student and instructor's code.
|
||||
test: "addition.add(1,1)"
|
3
tutorial/test_cases/q1/addition2.solution
Normal file
3
tutorial/test_cases/q1/addition2.solution
Normal file
@ -0,0 +1,3 @@
|
||||
# This is the solution file for test_cases/q1/addition2.test.
|
||||
# The result of evaluating the test must equal the below when cast to a string.
|
||||
result: "5"
|
7
tutorial/test_cases/q1/addition2.test
Normal file
7
tutorial/test_cases/q1/addition2.test
Normal file
@ -0,0 +1,7 @@
|
||||
class: "EvalTest"
|
||||
success: "add(a,b) returns the sum of a and b"
|
||||
failure: "add(a,b) must return the sum of a and b"
|
||||
|
||||
# A python expression to be evaluated. This expression must return the
|
||||
# same result for the student and instructor's code.
|
||||
test: "addition.add(2,3)"
|
3
tutorial/test_cases/q1/addition3.solution
Normal file
3
tutorial/test_cases/q1/addition3.solution
Normal file
@ -0,0 +1,3 @@
|
||||
# This is the solution file for test_cases/q1/addition3.test.
|
||||
# The result of evaluating the test must equal the below when cast to a string.
|
||||
result: "7.9"
|
7
tutorial/test_cases/q1/addition3.test
Normal file
7
tutorial/test_cases/q1/addition3.test
Normal file
@ -0,0 +1,7 @@
|
||||
class: "EvalTest"
|
||||
success: "add(a,b) returns the sum of a and b"
|
||||
failure: "add(a,b) must return the sum of a and b"
|
||||
|
||||
# A python expression to be evaluated. This expression must return the
|
||||
# same result for the student and instructor's code.
|
||||
test: "addition.add(10,-2.1)"
|
Reference in New Issue
Block a user