Sha256: 03ae4256773c431a4f44d288a4978e04006d5271b2daf0bf0175dab5f906caa4
Contents?: true
Size: 865 Bytes
Versions: 69
Compression:
Stored size: 865 Bytes
Contents
if !System.get_env("EXERCISM_TEST_EXAMPLES") do Code.load_file("gigasecond.exs", __DIR__) end ExUnit.start() ExUnit.configure(exclude: :pending, trace: true) defmodule GigasecondTest do use ExUnit.Case # @tag :pending test "from 4/25/2011" do assert Gigasecond.from({{2011, 4, 25}, {0, 0, 0}}) == {{2043, 1, 1}, {1, 46, 40}} end @tag :pending test "from 6/13/1977" do assert Gigasecond.from({{1977, 6, 13}, {0, 0, 0}}) == {{2009, 2, 19}, {1, 46, 40}} end @tag :pending test "from 7/19/1959" do assert Gigasecond.from({{1959, 7, 19}, {0, 0, 0}}) == {{1991, 3, 27}, {1, 46, 40}} end @tag :pending test "yourself" do # customize these values for yourself # your_birthday = {{year1, month1, day1}, {0, 0, 0}} # assert Gigasecond.from(your_birthday) == {{year2, month2, day2}, {hours, minutes, seconds}} end end
Version data entries
69 entries across 69 versions & 1 rubygems