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.119 tracks/erlang/exercises/gigasecond/test/gigasecond_tests.erl
trackler-2.2.1.118 tracks/erlang/exercises/gigasecond/test/gigasecond_tests.erl
trackler-2.2.1.117 tracks/erlang/exercises/gigasecond/test/gigasecond_tests.erl
trackler-2.2.1.116 tracks/erlang/exercises/gigasecond/test/gigasecond_tests.erl
trackler-2.2.1.115 tracks/erlang/exercises/gigasecond/test/gigasecond_tests.erl
trackler-2.2.1.114 tracks/erlang/exercises/gigasecond/test/gigasecond_tests.erl
trackler-2.2.1.113 tracks/erlang/exercises/gigasecond/test/gigasecond_tests.erl
trackler-2.2.1.111 tracks/erlang/exercises/gigasecond/test/gigasecond_tests.erl
trackler-2.2.1.110 tracks/erlang/exercises/gigasecond/test/gigasecond_tests.erl
trackler-2.2.1.109 tracks/erlang/exercises/gigasecond/test/gigasecond_tests.erl
trackler-2.2.1.108 tracks/erlang/exercises/gigasecond/test/gigasecond_tests.erl
trackler-2.2.1.107 tracks/erlang/exercises/gigasecond/test/gigasecond_tests.erl
trackler-2.2.1.106 tracks/erlang/exercises/gigasecond/test/gigasecond_tests.erl
trackler-2.2.1.105 tracks/erlang/exercises/gigasecond/test/gigasecond_tests.erl
trackler-2.2.1.104 tracks/erlang/exercises/gigasecond/test/gigasecond_tests.erl
trackler-2.2.1.103 tracks/erlang/exercises/gigasecond/test/gigasecond_tests.erl
trackler-2.2.1.102 tracks/erlang/exercises/gigasecond/test/gigasecond_tests.erl
trackler-2.2.1.101 tracks/erlang/exercises/gigasecond/test/gigasecond_tests.erl
trackler-2.2.1.100 tracks/erlang/exercises/gigasecond/test/gigasecond_tests.erl
trackler-2.2.1.99 tracks/erlang/exercises/gigasecond/test/gigasecond_tests.erl