Add line/position in compilation errors; Add compile to AST; FIx infinite loop in close parens.
This commit is contained in:
@@ -10,7 +10,7 @@ fn test_decrement() {
|
||||
assert_eq!(
|
||||
engine.eval::<String>("let s = \"test\"; s -= \"ing\"; s"),
|
||||
Err(EvalAltResult::ErrorFunctionNotFound(
|
||||
"- (alloc::string::String,alloc::string::String)".to_string()
|
||||
"- (alloc::string::String, alloc::string::String)".to_string()
|
||||
))
|
||||
);
|
||||
}
|
||||
|
@@ -32,7 +32,7 @@ fn test_mismatched_op_custom_type() {
|
||||
assert_eq!(
|
||||
engine.eval::<i64>("60 + new_ts()"),
|
||||
Err(EvalAltResult::ErrorFunctionNotFound(
|
||||
"+ (i64,mismatched_op::test_mismatched_op_custom_type::TestStruct)".into()
|
||||
"+ (i64, mismatched_op::test_mismatched_op_custom_type::TestStruct)".into()
|
||||
))
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user