Closed allight closed 10 years ago
Confirmed, looking into it.
I committed a cardinal sin in JavaScript; relying on truthy/falsiness of something that turned out to be a string. I originally intended for these always to be objects, but it turns out the raw string can appear here, and empty strings are falsy in JS.
https://github.com/brownplt/captain-teach/commit/3263e57ffe3ce2155f74a8ebeea8b3aab0e3676c
Darn.
(Pushed to the site).
Code that raises an empty string as an error in captain teach within a check or where clause is always reported to have passed the given test, even if it has not.
Example:
Result: All 6 tests pass Expected result: Tests 1, 2, 4 & 5 fail.
Note this does not affect a locally installed version of pyret, only captain teach, meaning it probably has to do with javascript.