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.139 tracks/erlang/exercises/gigasecond/test/gigasecond_tests.erl
trackler-2.2.1.138 tracks/erlang/exercises/gigasecond/test/gigasecond_tests.erl
trackler-2.2.1.137 tracks/erlang/exercises/gigasecond/test/gigasecond_tests.erl
trackler-2.2.1.136 tracks/erlang/exercises/gigasecond/test/gigasecond_tests.erl
trackler-2.2.1.135 tracks/erlang/exercises/gigasecond/test/gigasecond_tests.erl
trackler-2.2.1.134 tracks/erlang/exercises/gigasecond/test/gigasecond_tests.erl
trackler-2.2.1.133 tracks/erlang/exercises/gigasecond/test/gigasecond_tests.erl
trackler-2.2.1.132 tracks/erlang/exercises/gigasecond/test/gigasecond_tests.erl
trackler-2.2.1.131 tracks/erlang/exercises/gigasecond/test/gigasecond_tests.erl
trackler-2.2.1.130 tracks/erlang/exercises/gigasecond/test/gigasecond_tests.erl
trackler-2.2.1.129 tracks/erlang/exercises/gigasecond/test/gigasecond_tests.erl
trackler-2.2.1.128 tracks/erlang/exercises/gigasecond/test/gigasecond_tests.erl
trackler-2.2.1.127 tracks/erlang/exercises/gigasecond/test/gigasecond_tests.erl
trackler-2.2.1.126 tracks/erlang/exercises/gigasecond/test/gigasecond_tests.erl
trackler-2.2.1.125 tracks/erlang/exercises/gigasecond/test/gigasecond_tests.erl
trackler-2.2.1.124 tracks/erlang/exercises/gigasecond/test/gigasecond_tests.erl
trackler-2.2.1.123 tracks/erlang/exercises/gigasecond/test/gigasecond_tests.erl
trackler-2.2.1.122 tracks/erlang/exercises/gigasecond/test/gigasecond_tests.erl
trackler-2.2.1.121 tracks/erlang/exercises/gigasecond/test/gigasecond_tests.erl
trackler-2.2.1.120 tracks/erlang/exercises/gigasecond/test/gigasecond_tests.erl