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.1.0.50 tracks/scala/exercises/leap/src/test/scala/LeapTest.scala
trackler-2.1.0.49 tracks/scala/exercises/leap/src/test/scala/LeapTest.scala
trackler-2.1.0.48 tracks/scala/exercises/leap/src/test/scala/LeapTest.scala
trackler-2.1.0.47 tracks/scala/exercises/leap/src/test/scala/LeapTest.scala
trackler-2.1.0.46 tracks/scala/exercises/leap/src/test/scala/LeapTest.scala
trackler-2.1.0.45 tracks/scala/exercises/leap/src/test/scala/LeapTest.scala
trackler-2.1.0.44 tracks/scala/exercises/leap/src/test/scala/LeapTest.scala
trackler-2.1.0.43 tracks/scala/exercises/leap/src/test/scala/LeapTest.scala
trackler-2.1.0.42 tracks/scala/exercises/leap/src/test/scala/LeapTest.scala
trackler-2.1.0.41 tracks/scala/exercises/leap/src/test/scala/LeapTest.scala
trackler-2.1.0.40 tracks/scala/exercises/leap/src/test/scala/LeapTest.scala
trackler-2.1.0.39 tracks/scala/exercises/leap/src/test/scala/LeapTest.scala
trackler-2.1.0.38 tracks/scala/exercises/leap/src/test/scala/LeapTest.scala
trackler-2.1.0.37 tracks/scala/exercises/leap/src/test/scala/LeapTest.scala
trackler-2.1.0.36 tracks/scala/exercises/leap/src/test/scala/LeapTest.scala
trackler-2.1.0.34 tracks/scala/exercises/leap/src/test/scala/LeapTest.scala
trackler-2.1.0.33 tracks/scala/exercises/leap/src/test/scala/LeapTest.scala
trackler-2.1.0.32 tracks/scala/exercises/leap/src/test/scala/LeapTest.scala
trackler-2.1.0.31 tracks/scala/exercises/leap/src/test/scala/LeapTest.scala
trackler-2.1.0.30 tracks/scala/exercises/leap/src/test/scala/LeapTest.scala