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

Function test_assignment_errors

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

Source from the content-addressed store, hash-verified

2244
2245 #[test]
2246 fn test_assignment_errors() {
2247 do_error_test("a =", "1:4: Missing expression in assignment");
2248 do_error_test("a = b 3", "1:7: Unexpected value in expression");
2249 do_error_test("a = b, 3", "1:6: Unexpected , in assignment");
2250 do_error_test("a = if 3", "1:5: Unexpected keyword in expression");
2251 do_error_test("true = 1", "1:1: Unexpected TRUE in statement");
2252 }
2253
2254 #[test]
2255 fn test_builtin_calls() {

Callers

nothing calls this directly

Calls 1

do_error_testFunction · 0.85

Tested by

no test coverage detected