Fix test formatting.

This commit is contained in:
Stephen Chung
2021-03-27 18:08:34 +08:00
parent 47588f9784
commit ea970631ff
10 changed files with 45 additions and 45 deletions

View File

@@ -242,19 +242,19 @@ fn test_function_is_def() -> Result<(), Box<EvalAltResult>> {
r#"
fn foo(x) { x + 1 }
is_def_fn("foo", 1)
"#
"#
)?);
assert!(!engine.eval::<bool>(
r#"
fn foo(x) { x + 1 }
is_def_fn("bar", 1)
"#
"#
)?);
assert!(!engine.eval::<bool>(
r#"
fn foo(x) { x + 1 }
is_def_fn("foo", 0)
"#
"#
)?);
Ok(())