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

Function test_data_errors

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

Source from the content-addressed store, hash-verified

2481
2482 #[test]
2483 fn test_data_errors() {
2484 do_error_test("DATA + 2", "1:6: Unexpected + in DATA statement");
2485 do_error_test("DATA ;", "1:6: Unexpected ; in DATA statement");
2486 do_error_test("DATA 5 + 1", "1:8: Expected comma after datum but found +");
2487 do_error_test("DATA 5 ; 1", "1:8: Expected comma after datum but found ;");
2488 do_error_test("DATA -FALSE", "1:6: Expected number after -");
2489 do_error_test("DATA -\"abc\"", "1:6: Expected number after -");
2490 do_error_test("DATA -foo", "1:6: Expected number after -");
2491 }
2492
2493 #[test]
2494 fn test_declare_callable_no_args_eof() {

Callers

nothing calls this directly

Calls 1

do_error_testFunction · 0.85

Tested by

no test coverage detected