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

Function test_builtin_calls_errors

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

Source from the content-addressed store, hash-verified

2407
2408 #[test]
2409 fn test_builtin_calls_errors() {
2410 do_error_test("FOO 3 5\n", "1:7: Unexpected value in expression");
2411 do_error_test("INPUT$ a\n", "1:1: Type annotation not allowed in INPUT$");
2412 do_error_test("PRINT IF 1\n", "1:7: Unexpected keyword in expression");
2413 do_error_test("PRINT 3, IF 1\n", "1:10: Unexpected keyword in expression");
2414 do_error_test("PRINT 3 THEN\n", "1:9: Expected comma, semicolon, or end of statement");
2415 do_error_test("PRINT ()\n", "1:7: Expected expression");
2416 do_error_test("PRINT (2, 3)\n", "1:7: Expected expression");
2417 do_error_test("PRINT (2, 3); 4\n", "1:7: Expected expression");
2418 }
2419
2420 #[test]
2421 fn test_data() {

Callers

nothing calls this directly

Calls 1

do_error_testFunction · 0.85

Tested by

no test coverage detected