Skip to content
This repository has been archived by the owner on Oct 22, 2021. It is now read-only.

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Newson committed Mar 11, 2011
1 parent 2099570 commit 91cca8f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/monic_file_test.erl → test/monic_file_tests.erl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
%% License for the specific language governing permissions and limitations under
%% the License.

-module(monic_file_test).
-module(monic_file_tests).
-include("monic.hrl").
-include_lib("eunit/include/eunit.hrl").

Expand All @@ -38,8 +38,9 @@ cleanup(Pid) ->
monic_file:close(Pid).

add(Pid) ->
[?_assertMatch({ok, 0, _}, monic_file:add(Pid, 3, {<<"123">>, done})),
?_assertMatch(true, monic_file:exists(Pid, 0, 0))].
Result = monic_file:add(Pid, 3, {<<"123">>, done}),
?_assertMatch({ok, _}, Result),
{ok, {Key, Cookie}} = Result.

add_long(Pid) ->
?_assertMatch({ok, 0, _}, monic_file:add(Pid, 6,
Expand Down

0 comments on commit 91cca8f

Please sign in to comment.