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

Function test_array_assignment_errors

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

Source from the content-addressed store, hash-verified

2203
2204 #[test]
2205 fn test_array_assignment_errors() {
2206 do_error_test("a(", "1:3: Unexpected <<EOF>>");
2207 do_error_test("a()", "1:2: Expected expression");
2208 do_error_test("a() =", "1:6: Missing expression in array assignment");
2209 do_error_test("a() IF", "1:2: Expected expression");
2210 do_error_test("a() = 3 4", "1:9: Unexpected value in expression");
2211 do_error_test("a() = 3 THEN", "1:9: Unexpected THEN in array assignment");
2212 do_error_test("a(,) = 3", "1:3: Missing expression");
2213 do_error_test("a(2;3) = 3", "1:4: Unexpected ;");
2214 do_error_test("(2) = 3", "1:1: Unexpected ( in statement");
2215 }
2216
2217 #[test]
2218 fn test_assignments() {

Callers

nothing calls this directly

Calls 1

do_error_testFunction · 0.85

Tested by

no test coverage detected