()
| 348 | |
| 349 | #[test] |
| 350 | fn test_read_errors() { |
| 351 | check_stmt_compilation_err("1:1: READ expected vref1[, .., vrefN]", "READ"); |
| 352 | check_stmt_compilation_err("1:6: READ expected vref1[, .., vrefN]", "READ 3"); |
| 353 | check_stmt_compilation_err("1:7: READ expected vref1[, .., vrefN]", "READ i; j"); |
| 354 | |
| 355 | check_stmt_err( |
| 356 | "1:34: Cannot assign value of type STRING to variable of type INTEGER", |
| 357 | "DIM i AS INTEGER: DATA \"x\": READ i", |
| 358 | ); |
| 359 | check_stmt_err( |
| 360 | "1:36: Cannot assign value of type BOOLEAN to variable of type INTEGER", |
| 361 | "DIM s AS INTEGER: DATA FALSE: READ s", |
| 362 | ); |
| 363 | } |
| 364 | |
| 365 | #[test] |
| 366 | fn test_restore_nothing() { |
nothing calls this directly
no test coverage detected