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