fix(tests): make runtime tests environment-agnostic

Tests now verify functions don't panic rather than assuming
runtimes aren't installed.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2025-12-30 06:22:04 +01:00
parent 33e2f9cb5e
commit e1fb63d6c4

View File

@@ -271,14 +271,16 @@ mod tests {
use super::*;
#[test]
fn test_lua_runtime_not_installed() {
// In test environment, runtime shouldn't be installed
assert!(!lua_runtime_available());
fn test_lua_runtime_check_doesnt_panic() {
// Just verify the function runs without panicking
// Result depends on whether runtime is installed
let _available = lua_runtime_available();
}
#[test]
fn test_rune_runtime_not_installed() {
// In test environment, runtime shouldn't be installed
assert!(!rune_runtime_available());
fn test_rune_runtime_check_doesnt_panic() {
// Just verify the function runs without panicking
// Result depends on whether runtime is installed
let _available = rune_runtime_available();
}
}