diff --git a/tests/switch.rs b/tests/switch.rs index 8008ccf2..2a4aed98 100644 --- a/tests/switch.rs +++ b/tests/switch.rs @@ -52,7 +52,7 @@ fn test_switch() -> Result<(), Box> { 123 ); assert_eq!( - engine.eval::("let x = timestamp(); switch x { 1 => 123, _ => 42 }")?, + engine.eval_with_scope::(&mut scope, "switch x { 424242 => 123, _ => 42 }")?, 42 ); assert_eq!(