Sha256: 71ae76c2c1bd2a26722de6ef1aae797ed5d02d094b247fbb883f6565468e4f57

Contents?: true

Size: 586 Bytes

Versions: 326

Compression:

Stored size: 586 Bytes

Contents

if !System.get_env("EXERCISM_TEST_EXAMPLES") do
  Code.load_file("leap.exs", __DIR__)
end

ExUnit.start
ExUnit.configure exclude: :pending, trace: true

defmodule LeapTest do
  use ExUnit.Case

  # @tag :pending
  test "vanilla leap year" do
    assert Year.leap_year?(1996)
  end

  @tag :pending
  test "any old year" do
    refute Year.leap_year?(1997), "1997 is not a leap year."
  end

  @tag :pending
  test "century" do
    refute Year.leap_year?(1900), "1900 is not a leap year."
  end

  @tag :pending
  test "exceptional century" do
    assert Year.leap_year?(2400)
  end
end

Version data entries

326 entries across 326 versions & 1 rubygems

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