Change eval<()> to run.

This commit is contained in:
Stephen Chung
2022-01-10 13:26:33 +08:00
parent 1e0d46fc13
commit d15470fd4b
8 changed files with 18 additions and 20 deletions

View File

@@ -11,7 +11,7 @@ fn test_switch() -> Result<(), Box<EvalAltResult>> {
'a'
);
assert_eq!(
engine.eval::<()>("switch 3 { 1 => (), 2 => 'a', 42 => true }")?,
engine.run("switch 3 { 1 => (), 2 => 'a', 42 => true }")?,
()
);
assert_eq!(