Sha256: f36a7c229e9866b01e6636ad1496d90b4da1959dec6ac65134f28f74eb946b0b
Contents?: true
Size: 564 Bytes
Versions: 142
Compression:
Stored size: 564 Bytes
Contents
import org.scalatest.{Matchers, FunSuite} /** @version 1.0.0 */ class LeapTest extends FunSuite with Matchers { test("year not divisible by 4: common year") { Leap.leapYear(2015) should be (false) } test("year divisible by 4, not divisible by 100: leap year") { pending Leap.leapYear(2016) should be (true) } test("year divisible by 100, not divisible by 400: common year") { pending Leap.leapYear(2100) should be (false) } test("year divisible by 400: leap year") { pending Leap.leapYear(2000) should be (true) } }
Version data entries
142 entries across 142 versions & 1 rubygems