Sha256: 4585fd78c6dc99c5b904e6b5e338cdc87d837175c86246b526873aa45f5a7ee6

Contents?: true

Size: 632 Bytes

Versions: 116

Compression:

Stored size: 632 Bytes

Contents

-module(gigasecond_tests).

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

one_test() ->
  Gs = gigasecond:from({2011, 4, 25}),
  ?assertEqual({{2043, 1, 1}, {1, 46, 40}}, Gs).

two_test() ->
  Gs = gigasecond:from({1977, 6, 13}),
  ?assertEqual({{2009, 2, 19}, {1, 46, 40}}, Gs).

three_test() ->
  Gs = gigasecond:from({1959, 7, 19}),
  ?assertEqual({{1991, 3, 27}, {1, 46, 40}}, Gs).

four_with_seconds_test() ->
  Gs = gigasecond:from({{1959, 7, 19}, {23, 59, 59}}),
  ?assertEqual({{1991, 3, 28}, {1, 46, 39}}, Gs).

version_test() ->
  ?assertMatch(1, gigasecond:test_version()).

Version data entries

116 entries across 116 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/erlang/exercises/gigasecond/test/gigasecond_tests.erl
trackler-2.2.1.179 tracks/erlang/exercises/gigasecond/test/gigasecond_tests.erl
trackler-2.2.1.178 tracks/erlang/exercises/gigasecond/test/gigasecond_tests.erl
trackler-2.2.1.177 tracks/erlang/exercises/gigasecond/test/gigasecond_tests.erl
trackler-2.2.1.176 tracks/erlang/exercises/gigasecond/test/gigasecond_tests.erl
trackler-2.2.1.175 tracks/erlang/exercises/gigasecond/test/gigasecond_tests.erl
trackler-2.2.1.174 tracks/erlang/exercises/gigasecond/test/gigasecond_tests.erl
trackler-2.2.1.173 tracks/erlang/exercises/gigasecond/test/gigasecond_tests.erl
trackler-2.2.1.172 tracks/erlang/exercises/gigasecond/test/gigasecond_tests.erl
trackler-2.2.1.171 tracks/erlang/exercises/gigasecond/test/gigasecond_tests.erl
trackler-2.2.1.170 tracks/erlang/exercises/gigasecond/test/gigasecond_tests.erl
trackler-2.2.1.169 tracks/erlang/exercises/gigasecond/test/gigasecond_tests.erl
trackler-2.2.1.167 tracks/erlang/exercises/gigasecond/test/gigasecond_tests.erl
trackler-2.2.1.166 tracks/erlang/exercises/gigasecond/test/gigasecond_tests.erl
trackler-2.2.1.165 tracks/erlang/exercises/gigasecond/test/gigasecond_tests.erl
trackler-2.2.1.164 tracks/erlang/exercises/gigasecond/test/gigasecond_tests.erl
trackler-2.2.1.163 tracks/erlang/exercises/gigasecond/test/gigasecond_tests.erl
trackler-2.2.1.162 tracks/erlang/exercises/gigasecond/test/gigasecond_tests.erl
trackler-2.2.1.161 tracks/erlang/exercises/gigasecond/test/gigasecond_tests.erl
trackler-2.2.1.160 tracks/erlang/exercises/gigasecond/test/gigasecond_tests.erl