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

Version Path
trackler-2.2.1.109 tracks/elixir/exercises/gigasecond/gigasecond_test.exs
trackler-2.2.1.108 tracks/elixir/exercises/gigasecond/gigasecond_test.exs
trackler-2.2.1.107 tracks/elixir/exercises/gigasecond/gigasecond_test.exs
trackler-2.2.1.106 tracks/elixir/exercises/gigasecond/gigasecond_test.exs
trackler-2.2.1.105 tracks/elixir/exercises/gigasecond/gigasecond_test.exs
trackler-2.2.1.104 tracks/elixir/exercises/gigasecond/gigasecond_test.exs
trackler-2.2.1.103 tracks/elixir/exercises/gigasecond/gigasecond_test.exs
trackler-2.2.1.102 tracks/elixir/exercises/gigasecond/gigasecond_test.exs
trackler-2.2.1.101 tracks/elixir/exercises/gigasecond/gigasecond_test.exs
trackler-2.2.1.100 tracks/elixir/exercises/gigasecond/gigasecond_test.exs
trackler-2.2.1.99 tracks/elixir/exercises/gigasecond/gigasecond_test.exs
trackler-2.2.1.98 tracks/elixir/exercises/gigasecond/gigasecond_test.exs
trackler-2.2.1.97 tracks/elixir/exercises/gigasecond/gigasecond_test.exs
trackler-2.2.1.96 tracks/elixir/exercises/gigasecond/gigasecond_test.exs
trackler-2.2.1.95 tracks/elixir/exercises/gigasecond/gigasecond_test.exs
trackler-2.2.1.94 tracks/elixir/exercises/gigasecond/gigasecond_test.exs
trackler-2.2.1.93 tracks/elixir/exercises/gigasecond/gigasecond_test.exs
trackler-2.2.1.92 tracks/elixir/exercises/gigasecond/gigasecond_test.exs
trackler-2.2.1.91 tracks/elixir/exercises/gigasecond/gigasecond_test.exs
trackler-2.2.1.90 tracks/elixir/exercises/gigasecond/gigasecond_test.exs