Skip to content

String: Answer test results

This page exposes the results of running answer tests on STACK test cases. This page is automatically generated from the STACK unit tests and is designed to show question authors what answer tests actually do. This includes cases where answer tests currentl fail, which gives a negative expected mark. Comments and further test cases are very welcome.

String

Test
?
Student response
Teacher answer
Opt
Mark
Answer note
String
"With spaces"
"With spaces"
1
String
"Without spaces"
"Withoutspaces"
0
String
Hello
hello
0
String
hello
hello
1
String
hello
heloo
0
This test works on expressions as well as strings
String
sin(x^2)
"sin(x^2)"
1