()
| 219 | |
| 220 | #[test] |
| 221 | fn test_sleep_errors() { |
| 222 | check_stmt_compilation_err("1:1: SLEEP expected seconds#", "SLEEP"); |
| 223 | check_stmt_compilation_err("1:1: SLEEP expected seconds#", "SLEEP 2, 3"); |
| 224 | check_stmt_compilation_err("1:1: SLEEP expected seconds#", "SLEEP 2; 3"); |
| 225 | check_stmt_compilation_err("1:7: STRING is not a number", "SLEEP \"foo\""); |
| 226 | check_stmt_err("1:7: Sleep time must be positive", "SLEEP -1"); |
| 227 | check_stmt_err("1:7: Sleep time must be positive", "SLEEP -0.001"); |
| 228 | } |
| 229 | } |
nothing calls this directly
no test coverage detected