Skip to content

Commit

Permalink
* test/api/potion-test.c: broken eval test. needed to pass closure i…
Browse files Browse the repository at this point in the history
…n as the second arg.
  • Loading branch information
_why committed Jul 30, 2009
1 parent a5048a5 commit 3394b8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/api/potion-test.c
Expand Up @@ -98,7 +98,7 @@ void potion_test_sig(CuTest *T) {
void potion_test_eval(CuTest *T) {
PN add = potion_eval(P, potion_str(P, "(x, y): x + y."));
PN_F addfn = PN_CLOSURE_F(add);
PN num = addfn(P, 0, 0, PN_NUM(3), PN_NUM(5));
PN num = addfn(P, add, 0, PN_NUM(3), PN_NUM(5));
CuAssertIntEquals(T, "calling closure as c func failed",
PN_INT(num), 8);
}
Expand Down

0 comments on commit 3394b8e

Please sign in to comment.