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
With check_function() and check_args(), it is possible whether some arguments are specified, and whether they are correct (with has_equal_ast()), but it is not possible to check if some arguments are not specified. There is test_not() functionality, but this will not work in the current implementation: if certain arguments are not found in the solution, an exception is thrown and the SCT execution errors out.
To improve this, we could adopt a TestFailSolution exception, that is thrown every time we're trying to access e.g. an argument that is also not in the solution. This error is actually thrown if we're not in test_not() mode (the SCT was incorrectly written), and that is swallowed if we are in test_not() mode (the SCT did this on purpose).
With
check_function()
andcheck_args()
, it is possible whether some arguments are specified, and whether they are correct (withhas_equal_ast()
), but it is not possible to check if some arguments are not specified. There istest_not()
functionality, but this will not work in the current implementation: if certain arguments are not found in the solution, an exception is thrown and the SCT execution errors out.To improve this, we could adopt a
TestFailSolution
exception, that is thrown every time we're trying to access e.g. an argument that is also not in the solution. This error is actually thrown if we're not intest_not()
mode (the SCT was incorrectly written), and that is swallowed if we are intest_not()
mode (the SCT did this on purpose).cc @yashasroy
The text was updated successfully, but these errors were encountered: