Move call inside form to allow for tracing (might still need a way to get out of the end of tracing)

This commit is contained in:
2023-07-04 12:23:31 -04:00
parent b03122c7b8
commit f4ae4db92d
3 changed files with 95 additions and 102 deletions

View File

@@ -20,7 +20,7 @@ fn parse_test() {
fn eval_test<T: Into<Form>>(also_pe: bool, gram: &grammar::TermParser, e: &Rc<Form>, code: &str, expected: T) {
println!("Doing test {}", code);
let parsed = Rc::new(gram.parse(code).unwrap());
let parsed = gram.parse(code).unwrap();
let basic_result = eval(Rc::clone(e), Rc::clone(&parsed));
assert_eq!(*basic_result, expected.into());
if also_pe {