Add code for tutorial.

This commit is contained in:
2021-10-11 20:45:38 -04:00
parent 71ceedab45
commit a95016431f
39 changed files with 2368 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
max_points: "1"
class: "PassAllTestsQuestion"

View 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"

View 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)"

View 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"

View 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)"

View 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"

View 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)"