Fix error messages.

This commit is contained in:
Stephen Chung
2020-11-11 13:25:45 +08:00
parent 958762079e
commit 7b27dcdd62
2 changed files with 10 additions and 9 deletions

View File

@@ -73,7 +73,8 @@ fn test_fn_ptr() -> Result<(), Box<EvalAltResult>> {
"#
)
.expect_err("should error"),
EvalAltResult::ErrorInFunctionCall(fn_name, err, _) if fn_name == "foo" && matches!(*err, EvalAltResult::ErrorUnboundThis(_))
EvalAltResult::ErrorInFunctionCall(fn_name, err, _)
if fn_name == "foo" && matches!(*err, EvalAltResult::ErrorUnboundThis(_))
));
Ok(())