#[cfg(test)]
mod tests {
    use crate::{DiagnosticCode, VirtualWorkspace};

    #[test]
    fn test_if_number_then() {
        let mut ws = VirtualWorkspace::new();
        // LuaJIT: `0then` tokenizes cleanly as `0` + `then` (no error)
        assert!(ws.check_code_for(
            DiagnosticCode::SyntaxError,
            r#"
            if 0then
            end
            "#
        ));
    }
}
