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

Version Path
trackler-2.2.1.107 tracks/scala/exercises/leap/src/test/scala/LeapTest.scala
trackler-2.2.1.106 tracks/scala/exercises/leap/src/test/scala/LeapTest.scala
trackler-2.2.1.105 tracks/scala/exercises/leap/src/test/scala/LeapTest.scala
trackler-2.2.1.104 tracks/scala/exercises/leap/src/test/scala/LeapTest.scala
trackler-2.2.1.103 tracks/scala/exercises/leap/src/test/scala/LeapTest.scala
trackler-2.2.1.102 tracks/scala/exercises/leap/src/test/scala/LeapTest.scala
trackler-2.2.1.101 tracks/scala/exercises/leap/src/test/scala/LeapTest.scala
trackler-2.2.1.100 tracks/scala/exercises/leap/src/test/scala/LeapTest.scala
trackler-2.2.1.99 tracks/scala/exercises/leap/src/test/scala/LeapTest.scala
trackler-2.2.1.98 tracks/scala/exercises/leap/src/test/scala/LeapTest.scala
trackler-2.2.1.97 tracks/scala/exercises/leap/src/test/scala/LeapTest.scala
trackler-2.2.1.96 tracks/scala/exercises/leap/src/test/scala/LeapTest.scala
trackler-2.2.1.95 tracks/scala/exercises/leap/src/test/scala/LeapTest.scala
trackler-2.2.1.94 tracks/scala/exercises/leap/src/test/scala/LeapTest.scala
trackler-2.2.1.93 tracks/scala/exercises/leap/src/test/scala/LeapTest.scala
trackler-2.2.1.92 tracks/scala/exercises/leap/src/test/scala/LeapTest.scala
trackler-2.2.1.91 tracks/scala/exercises/leap/src/test/scala/LeapTest.scala
trackler-2.2.1.90 tracks/scala/exercises/leap/src/test/scala/LeapTest.scala
trackler-2.2.1.89 tracks/scala/exercises/leap/src/test/scala/LeapTest.scala
trackler-2.2.1.88 tracks/scala/exercises/leap/src/test/scala/LeapTest.scala