Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add spiraltime EUnit test which triggers badarg error

To run:
./rebar eunit skip_deps=true suite=spiraltime
  • Loading branch information...
commit c4dbc68920fa1e609ceee246d55f6d9cece02879 1 parent 9107948
@dreverri dreverri authored
Showing with 9 additions and 0 deletions.
  1. +9 −0 src/spiraltime.erl
View
9 src/spiraltime.erl
@@ -126,3 +126,12 @@ test_spiraltime() ->
{PlusOne, 3} = rep_second(S2),
{PlusOne, 20} = rep_minute(S2),
true.
+
+-ifdef(TEST).
+-include_lib("eunit/include/eunit.hrl").
+
+bad_arg_test() ->
+ S0 = fresh(60),
+ incr(1, 0, S0).
+
+-endif.
Please sign in to comment.
Something went wrong with that request. Please try again.