Skip to content

Commit

Permalink
Fix for incorrect reduction and macro use
Browse files Browse the repository at this point in the history
  • Loading branch information
Cypher1 committed Mar 14, 2024
1 parent cf6202b commit 2b91c9e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion llamada/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,9 @@ macro_rules! tests {
plus_m = App(plus.clone(), church_m),
plus_n_m = App(plus_m, church_n)
);
*expr.root_mut() = (plus_n_m);
expr.reduce();
let result = expr.as_church(&plus_n_m);
let result = expr.as_church(expr.root());
eprintln!("{n:?} + {m:?} = {result:?}");
assert_eq!(result, Some(n + m));
}
Expand Down

0 comments on commit 2b91c9e

Please sign in to comment.