Sha256: afc7622307e0cc7080211600aba09021695c8ca00e9408bf1c8c7d060f7fdb85
Contents?: true
Size: 862 Bytes
Versions: 326
Compression:
Stored size: 862 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
326 entries across 326 versions & 1 rubygems