Levenshtein: 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.
Levenshtein
Test | ? | Student response | Teacher answer | Opt | Mark | Answer note | |
---|---|---|---|---|---|---|---|
Levenshtein | "Hello" |
"Hello" |
0 | STACKERROR_OPTION. | |||
TEST_FAILED | |||||||
The answer test failed to execute correctly: please alert your teacher. Missing option when executing the test. | |||||||
Levenshtein | 1/0 |
"Hello" |
0.9 |
-1 | ATLevenshtein_STACKERROR_SAns. | ||
TEST_FAILED | |||||||
The answer test failed to execute correctly: please alert your teacher. Division by zero. | |||||||
Levenshtein | x^2 |
"Hello" |
0.9 |
0 | ATLevenshtein_SA_not_string. | ||
The first argument to the Levenshtein answer test must be a string. The test failed. Please contact your teacher. | |||||||
Levenshtein | "Hello" |
"Hello" |
0.9 |
0 | ATLevenshtein_SB_malformed. | ||
The second argument to the Levenshtein answer test must be in the form [allow, deny] where each item is a list of strings. This argument is malformed and so the test failed. Please contact your teacher. | |||||||
Levenshtein | "Hello" |
["Hello"] |
0.9 |
0 | ATLevenshtein_SB_malformed. | ||
The second argument to the Levenshtein answer test must be in the form [allow, deny] where each item is a list of strings. This argument is malformed and so the test failed. Please contact your teacher. | |||||||
Levenshtein | "Hello" |
[["Hello"]] |
0.9 |
0 | ATLevenshtein_SB_malformed. | ||
The second argument to the Levenshtein answer test must be in the form [allow, deny] where each item is a list of strings. This argument is malformed and so the test failed. Please contact your teacher. | |||||||
Levenshtein | "Hello" |
[["Hello"], x^2] |
0.9 |
0 | ATLevenshtein_SB_malformed. | ||
The second argument to the Levenshtein answer test must be in the form [allow, deny] where each item is a list of strings. This argument is malformed and so the test failed. Please contact your teacher. | |||||||
Levenshtein | "Hello" |
[["Hello"], [x^2]] |
0.9 |
0 | ATLevenshtein_SB_malformed. | ||
The second argument to the Levenshtein answer test must be in the form [allow, deny] where each item is a list of strings. This argument is malformed and so the test failed. Please contact your teacher. | |||||||
Levenshtein | "Hello" |
[["Hello"], ["G oodbye"], ["Excess&q uot;]] |
0.9 |
0 | ATLevenshtein_SB_malformed. | ||
The second argument to the Levenshtein answer test must be in the form [allow, deny] where each item is a list of strings. This argument is malformed and so the test failed. Please contact your teacher. | |||||||
Levenshtein | "Hello" |
[[], ["Goodbye"]] |
0.9 |
0 | ATLevenshtein_SB_malformed. | ||
The second argument to the Levenshtein answer test must be in the form [allow, deny] where each item is a list of strings. This argument is malformed and so the test failed. Please contact your teacher. | |||||||
Levenshtein | "Hello" |
[["Hello"], ["G oodbye"]] |
z |
0 | ATLevenshtein_tol_not_number. | ||
The tolerance in the Levenshtein answer test must be a number, but is not. The test failed. Please contact your teacher. | |||||||
Levenshtein | "Hello" |
[["Hello"], ["G oodbye"]] |
[z] |
0 | ATLevenshtein_tol_not_number. | ||
The tolerance in the Levenshtein answer test must be a number, but is not. The test failed. Please contact your teacher. | |||||||
Usage tests | |||||||
Levenshtein | "Hello" |
[["Hello"], ["G oodbye"]] |
0.9 |
1 | ATLevenshtein_true: [[1.0,"Hello"],[0.0,"Goodbye"]]. | ||
Levenshtein | "hello" |
[["Hello"], ["G oodbye"]] |
[0.9] |
1 | ATLevenshtein_true: [[1.0,"Hello"],[0.0,"Goodbye"]]. | ||
Levenshtein | "hello" |
[["Hello", "Goo d day", "Hi"], ["Goodbye", "By e", "Fairwell"] ] |
[0.8, CASE] |
1 | ATLevenshtein_match: [[0.8,"Hello"],[0.25,"Fairwell"]]. | ||
The closest match was "\(\text{Hello}\)". | |||||||
Levenshtein | "goodday" |
[["Hello", "Goo d day", "Hi"], ["Goodbye", "By e", "Fairwell"] ] |
0.8 |
1 | ATLevenshtein_match: [[0.875,"Good day"],[0.57143,"Goodbye"]]. | ||
The closest match was "\(\text{Good day}\)". | |||||||
Levenshtein | "goodday" |
[["Hello", "Goo d day", "Hi"], ["Goodbye", "By e", "Fairwell"] ] |
[0.8, CASE] |
0 | ATLevenshtein_far: [[0.75,"Good day"],[0.42857,"Goodbye"]]. | ||
Levenshtein | "Jello" |
[["Hello", "Goo d day", "Hi"], ["Goodbye", "By e", "Fairwell"] ] |
0.9 |
0 | ATLevenshtein_far: [[0.8,"Hello"],[0.25,"Fairwell"]]. | ||
Levenshtein | "Jello" |
[["Hello", "Goo d day", "Hi"], ["Goodbye", "By e", "Fairwell"] ] |
0.75 |
1 | ATLevenshtein_match: [[0.8,"Hello"],[0.25,"Fairwell"]]. | ||
The closest match was "\(\text{Hello}\)". | |||||||
Levenshtein | "Jello" |
[["Hello", "Goo d day", "Hi"], []] |
0.75 |
1 | ATLevenshtein_match: [[0.8,"Hello"],[0,[]]]. | ||
The closest match was "\(\text{Hello}\)". | |||||||
Levenshtein | "Good bye" |
[["Hello", "Goo d day", "Hi"], ["Goodbye", "By e", "Fairwell"] ] |
0.75 |
0 | ATLevenshtein_deny: [[0.625,"Good day"],[0.875,"Goodbye"]]. | ||
Levenshtein | "Good, day!" |
[["Hello", "Goo d day", "Hi"], ["Goodbye", "By e", "Fairwell"] ] |
0.75 |
1 | ATLevenshtein_match: [[0.8,"Good day"],[0.5,"Goodbye"]]. | ||
The closest match was "\(\text{Good day}\)". | |||||||
Levenshtein | sremove_chars(".,!?" , "Good, day!") |
[["Hello", "Goo d day", "Hi"], ["Goodbye", "By e", "Fairwell"] ] |
0.75 |
1 | ATLevenshtein_true: [[1.0,"Good day"],[0.5,"Goodbye"]]. | ||
Levenshtein | " good day " |
[["Hello", "Goo d day", "Hi"], ["Goodbye", "By e", "Fairwell"] ] |
0.75 |
1 | ATLevenshtein_true: [[1.0,"Good day"],[0.5,"Goodbye"]]. | ||
Levenshtein | " good day " |
[["Hello", "Goo d day", "Hi"], ["Goodbye", "By e", "Fairwell"] ] |
[0.75, WHITESPA CE] |
0 | ATLevenshtein_far: [[0.47059,"Good day"],[0.29412,"Goodbye"]]. |