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

Function test_sleep_errors

std/src/datetime.rs:221–228  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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}

Callers

nothing calls this directly

Calls 2

check_stmt_errFunction · 0.85

Tested by

no test coverage detected