Permalink
Browse files

Fix the memoization test.

  • Loading branch information...
1 parent 83e6a26 commit 4e413478a6dd3a7b41ca46335130d3acbdd9befc @seancribbs committed Sep 18, 2012
Showing with 3 additions and 2 deletions.
  1. +1 −0 rebar.config
  2. +2 −2 test/test_memoization.erl
View
@@ -1,2 +1,3 @@
{lib_dirs, [".."]}.
{erl_opts, [debug_info, warn_export_vars]}.
+{eunit_opts, [verbose]}.
@@ -4,13 +4,13 @@
setup_memo_test() ->
neotoma_peg:setup_memo(),
- ?assertNot(undefined == ets:info(get(parse_memo_table))),
+ ?assertNot(undefined == ets:info(get({parse_memo_table, neotoma_peg}))),
neotoma_peg:release_memo().
release_memo_test() ->
neotoma_peg:setup_memo(),
neotoma_peg:release_memo(),
- ?assertEqual(undefined, ets:info(get(parse_memo_table))).
+ ?assertEqual(undefined, ets:info(get({parse_memo_table, neotoma_peg}))).
step_memo_test() ->
neotoma_peg:setup_memo(),

0 comments on commit 4e41347

Please sign in to comment.