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

Function test_read_errors

std/src/data.rs:350–363  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 2

check_stmt_errFunction · 0.85

Tested by

no test coverage detected