Sha256: dc2711fc752c03364a71908db096b27e61d0c28b6cdb731766ef4c883e717b7e

Contents?: true

Size: 387 Bytes

Versions: 84

Compression:

Stored size: 387 Bytes

Contents

% To run tests:
% erl -make
% erl -noshell -eval "eunit:test(leap, [verbose])" -s init stop
%

-module(leap_tests).

-include_lib("eunit/include/eunit.hrl").

leap_year_test() ->
  ?assert(leap:leap_year(1996)).

non_leap_year_test() ->
  ?assertNot(leap:leap_year(1997)).

century_test() ->
  ?assertNot(leap:leap_year(1900)).

fourth_century_test() ->
  ?assert(leap:leap_year(2400)).

Version data entries

84 entries across 84 versions & 1 rubygems

Version Path
trackler-2.0.6.28 tracks/erlang/exercises/leap/leap_tests.erl
trackler-2.0.6.27 tracks/erlang/exercises/leap/leap_tests.erl
trackler-2.0.6.26 tracks/erlang/exercises/leap/leap_tests.erl
trackler-2.0.6.25 tracks/erlang/exercises/leap/leap_tests.erl
trackler-2.0.6.24 tracks/erlang/exercises/leap/leap_tests.erl
trackler-2.0.6.23 tracks/erlang/exercises/leap/leap_tests.erl
trackler-2.0.6.22 tracks/erlang/exercises/leap/leap_tests.erl
trackler-2.0.6.21 tracks/erlang/exercises/leap/leap_tests.erl
trackler-2.0.6.20 tracks/erlang/exercises/leap/leap_tests.erl
trackler-2.0.6.19 tracks/erlang/exercises/leap/leap_tests.erl
trackler-2.0.6.18 tracks/erlang/exercises/leap/leap_tests.erl
trackler-2.0.6.17 tracks/erlang/exercises/leap/leap_tests.erl
trackler-2.0.6.16 tracks/erlang/exercises/leap/leap_tests.erl
trackler-2.0.6.15 tracks/erlang/exercises/leap/leap_tests.erl
trackler-2.0.6.14 tracks/erlang/exercises/leap/leap_tests.erl
trackler-2.0.6.13 tracks/erlang/exercises/leap/leap_tests.erl
trackler-2.0.6.12 tracks/erlang/exercises/leap/leap_tests.erl
trackler-2.0.6.11 tracks/erlang/exercises/leap/leap_tests.erl
trackler-2.0.6.10 tracks/erlang/exercises/leap/leap_tests.erl
trackler-2.0.6.9 tracks/erlang/exercises/leap/leap_tests.erl