()
| 951 | |
| 952 | #[test] |
| 953 | fn test_run_clears_before_execution_only() { |
| 954 | let program = "DIM a(1) AS INTEGER: a(0) = 123"; |
| 955 | let mut t = Tester::default().set_program(Some("untouched.bas"), program); |
| 956 | t.run("DIM a(1) AS STRING: RUN") |
| 957 | .expect_array_simple("a", ExprType::Integer, vec![123.into()]) |
| 958 | .expect_clear() |
| 959 | .expect_program(Some("untouched.bas"), program) |
| 960 | .check(); |
| 961 | t.run("RUN") |
| 962 | .expect_array_simple("a", ExprType::Integer, vec![123.into()]) |
| 963 | .expect_clear() |
| 964 | .expect_clear() |
| 965 | .expect_program(Some("untouched.bas"), program) |
| 966 | .check(); |
| 967 | } |
| 968 | |
| 969 | #[test] |
| 970 | fn test_run_something_that_exits() { |
nothing calls this directly
no test coverage detected