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

Function test_read_defaults_without_annotations

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

Source from the content-addressed store, hash-verified

277
278 #[test]
279 fn test_read_defaults_without_annotations() {
280 Tester::default()
281 .run(
282 r#"
283 DIM SHARED b AS BOOLEAN
284 DIM SHARED d AS DOUBLE
285 DIM SHARED i AS INTEGER
286 DIM SHARED s AS STRING
287 DATA , , , ,
288 READ a, b, d, i, s
289 "#,
290 )
291 .expect_var("a", 0)
292 .expect_var("b", false)
293 .expect_var("d", 0.0)
294 .expect_var("i", 0)
295 .expect_var("s", "")
296 .check();
297 }
298
299 #[test]
300 fn test_read_double_to_integer() {

Callers

nothing calls this directly

Calls 3

expect_varMethod · 0.80
checkMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected