You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected Behavior (assuming your compiler implementation is correct)
All tests should pass
Cause
compiler-tests-suite expect to read the expected output from some .res file, for examplevar_test_4.res, otherwise it will assume the expected output should be 42.
Workaround
In the check-passes-suite function, add the following before (let loop ([passes passes]
Description
When you have self defined
var_test
cases, for example, avar_test_4.rkt
file with simple contentand when you run
racket run-tests.rkt
, it will generate error likeExpected Behavior (assuming your compiler implementation is correct)
All tests should pass
Cause
compiler-tests-suite
expect to read the expected output from some.res
file, for examplevar_test_4.res
, otherwise it will assume the expected output should be 42.Workaround
In the
check-passes-suite
function, add the following before(let loop ([passes passes]
This will write the expected output to the corresponding result file in the interpreter run (before the compiler run).
The text was updated successfully, but these errors were encountered: