Sha256: 050cd78dbb6c807766ac64eedbb05dfcbe792ee85c600838cca48c03258dd96c
Contents?: true
Size: 589 Bytes
Versions: 69
Compression:
Stored size: 589 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
69 entries across 69 versions & 1 rubygems