MCPcopy Index your code
hub / github.com/endbasic/endbasic / test_exit_errors

Function test_exit_errors

core/src/parser.rs:2950–2953  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2948
2949 #[test]
2950 fn test_exit_errors() {
2951 do_error_test("EXIT", "1:5: Expecting DO, FOR, FUNCTION or SUB after EXIT");
2952 do_error_test("EXIT 5", "1:6: Expecting DO, FOR, FUNCTION or SUB after EXIT");
2953 }
2954
2955 /// Wrapper around `do_ok_test` to parse an expression. Given that expressions alone are not
2956 /// valid statements, we have to put them in a statement to parse them. In doing so, we can

Callers

nothing calls this directly

Calls 1

do_error_testFunction · 0.85

Tested by

no test coverage detected