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.29 tracks/elixir/exercises/leap/leap_test.exs
trackler-2.2.1.28 tracks/elixir/exercises/leap/leap_test.exs
trackler-2.2.1.27 tracks/elixir/exercises/leap/leap_test.exs
trackler-2.2.1.26 tracks/elixir/exercises/leap/leap_test.exs
trackler-2.2.1.25 tracks/elixir/exercises/leap/leap_test.exs
trackler-2.2.1.24 tracks/elixir/exercises/leap/leap_test.exs
trackler-2.2.1.23 tracks/elixir/exercises/leap/leap_test.exs
trackler-2.2.1.22 tracks/elixir/exercises/leap/leap_test.exs
trackler-2.2.1.21 tracks/elixir/exercises/leap/leap_test.exs
trackler-2.2.1.20 tracks/elixir/exercises/leap/leap_test.exs
trackler-2.2.1.19 tracks/elixir/exercises/leap/leap_test.exs
trackler-2.2.1.18 tracks/elixir/exercises/leap/leap_test.exs
trackler-2.2.1.17 tracks/elixir/exercises/leap/leap_test.exs
trackler-2.2.1.16 tracks/elixir/exercises/leap/leap_test.exs
trackler-2.2.1.15 tracks/elixir/exercises/leap/leap_test.exs
trackler-2.2.1.14 tracks/elixir/exercises/leap/leap_test.exs
trackler-2.2.1.13 tracks/elixir/exercises/leap/leap_test.exs
trackler-2.2.1.12 tracks/elixir/exercises/leap/leap_test.exs
trackler-2.2.1.11 tracks/elixir/exercises/leap/leap_test.exs
trackler-2.2.1.10 tracks/elixir/exercises/leap/leap_test.exs