Fix tests.

This commit is contained in:
Stephen Chung 2022-10-16 12:07:47 +08:00
parent 530109275f
commit 3e46263347

View File

@ -52,7 +52,7 @@ fn test_switch() -> Result<(), Box<EvalAltResult>> {
123 123
); );
assert_eq!( assert_eq!(
engine.eval::<INT>("let x = timestamp(); switch x { 1 => 123, _ => 42 }")?, engine.eval_with_scope::<INT>(&mut scope, "switch x { 424242 => 123, _ => 42 }")?,
42 42
); );
assert_eq!( assert_eq!(