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