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.49 tracks/elixir/exercises/gigasecond/gigasecond_test.exs
trackler-2.2.1.48 tracks/elixir/exercises/gigasecond/gigasecond_test.exs
trackler-2.2.1.47 tracks/elixir/exercises/gigasecond/gigasecond_test.exs
trackler-2.2.1.46 tracks/elixir/exercises/gigasecond/gigasecond_test.exs
trackler-2.2.1.45 tracks/elixir/exercises/gigasecond/gigasecond_test.exs
trackler-2.2.1.44 tracks/elixir/exercises/gigasecond/gigasecond_test.exs
trackler-2.2.1.43 tracks/elixir/exercises/gigasecond/gigasecond_test.exs
trackler-2.2.1.42 tracks/elixir/exercises/gigasecond/gigasecond_test.exs
trackler-2.2.1.41 tracks/elixir/exercises/gigasecond/gigasecond_test.exs
trackler-2.2.1.40 tracks/elixir/exercises/gigasecond/gigasecond_test.exs
trackler-2.2.1.39 tracks/elixir/exercises/gigasecond/gigasecond_test.exs
trackler-2.2.1.38 tracks/elixir/exercises/gigasecond/gigasecond_test.exs
trackler-2.2.1.37 tracks/elixir/exercises/gigasecond/gigasecond_test.exs
trackler-2.2.1.36 tracks/elixir/exercises/gigasecond/gigasecond_test.exs
trackler-2.2.1.35 tracks/elixir/exercises/gigasecond/gigasecond_test.exs
trackler-2.2.1.34 tracks/elixir/exercises/gigasecond/gigasecond_test.exs
trackler-2.2.1.33 tracks/elixir/exercises/gigasecond/gigasecond_test.exs
trackler-2.2.1.32 tracks/elixir/exercises/gigasecond/gigasecond_test.exs
trackler-2.2.1.31 tracks/elixir/exercises/gigasecond/gigasecond_test.exs
trackler-2.2.1.30 tracks/elixir/exercises/gigasecond/gigasecond_test.exs