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