()
| 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() { |
nothing calls this directly
no test coverage detected