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

Version Path
trackler-2.2.1.180 tracks/elixir/exercises/gigasecond/gigasecond_test.exs
trackler-2.2.1.179 tracks/elixir/exercises/gigasecond/gigasecond_test.exs
trackler-2.2.1.178 tracks/elixir/exercises/gigasecond/gigasecond_test.exs
trackler-2.2.1.177 tracks/elixir/exercises/gigasecond/gigasecond_test.exs
trackler-2.2.1.176 tracks/elixir/exercises/gigasecond/gigasecond_test.exs
trackler-2.2.1.175 tracks/elixir/exercises/gigasecond/gigasecond_test.exs
trackler-2.2.1.174 tracks/elixir/exercises/gigasecond/gigasecond_test.exs
trackler-2.2.1.173 tracks/elixir/exercises/gigasecond/gigasecond_test.exs
trackler-2.2.1.172 tracks/elixir/exercises/gigasecond/gigasecond_test.exs
trackler-2.2.1.171 tracks/elixir/exercises/gigasecond/gigasecond_test.exs
trackler-2.2.1.170 tracks/elixir/exercises/gigasecond/gigasecond_test.exs
trackler-2.2.1.169 tracks/elixir/exercises/gigasecond/gigasecond_test.exs
trackler-2.2.1.167 tracks/elixir/exercises/gigasecond/gigasecond_test.exs
trackler-2.2.1.166 tracks/elixir/exercises/gigasecond/gigasecond_test.exs
trackler-2.2.1.165 tracks/elixir/exercises/gigasecond/gigasecond_test.exs
trackler-2.2.1.164 tracks/elixir/exercises/gigasecond/gigasecond_test.exs
trackler-2.2.1.163 tracks/elixir/exercises/gigasecond/gigasecond_test.exs
trackler-2.2.1.162 tracks/elixir/exercises/gigasecond/gigasecond_test.exs
trackler-2.2.1.161 tracks/elixir/exercises/gigasecond/gigasecond_test.exs
trackler-2.2.1.160 tracks/elixir/exercises/gigasecond/gigasecond_test.exs