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 | "Hello" |
"hello" |
0 | |||
String | "hello" |
"hello" |
1 | |||
String | "hello" |
"heloo" |
0 | |||
String | "With spaces" |
"With spaces" |
1 | |||
String | "Without spaces" |
"Withoutspaces" |
0 | |||
Whitespace not trimmed off inside strings | ||||||
String | " Hello " |
"Hello" |
0 | |||
Whitespace is trimmed off around atoms | ||||||
String | Hello |
Hello |
1 | |||
This test works on expressions as well as strings | ||||||
String | sin(x^2) |
"sin(x^2)" |
1 | |||
String | pi^2/6 |
"pi^2/6" |
1 | |||
String | pi^2/6 |
"%pi^2/6" |
0 | |||