Implement cached hashes

This commit is contained in:
2023-02-20 22:20:00 -05:00
parent 7f10d111ac
commit 76b68e28d8
2 changed files with 103 additions and 78 deletions

View File

@@ -39,7 +39,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 {}", code);
println!("Doing test {}", code);
let parsed = Rc::new(gram.parse(code).unwrap());
let basic_result = eval(Rc::clone(e), Rc::clone(&parsed));
assert_eq!(*basic_result, expected.into());