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.67 tracks/scala/exercises/leap/src/test/scala/LeapTest.scala
trackler-2.2.1.66 tracks/scala/exercises/leap/src/test/scala/LeapTest.scala
trackler-2.2.1.65 tracks/scala/exercises/leap/src/test/scala/LeapTest.scala
trackler-2.2.1.64 tracks/scala/exercises/leap/src/test/scala/LeapTest.scala
trackler-2.2.1.63 tracks/scala/exercises/leap/src/test/scala/LeapTest.scala
trackler-2.2.1.62 tracks/scala/exercises/leap/src/test/scala/LeapTest.scala
trackler-2.2.1.61 tracks/scala/exercises/leap/src/test/scala/LeapTest.scala
trackler-2.2.1.60 tracks/scala/exercises/leap/src/test/scala/LeapTest.scala
trackler-2.2.1.59 tracks/scala/exercises/leap/src/test/scala/LeapTest.scala
trackler-2.2.1.58 tracks/scala/exercises/leap/src/test/scala/LeapTest.scala
trackler-2.2.1.57 tracks/scala/exercises/leap/src/test/scala/LeapTest.scala
trackler-2.2.1.56 tracks/scala/exercises/leap/src/test/scala/LeapTest.scala
trackler-2.2.1.55 tracks/scala/exercises/leap/src/test/scala/LeapTest.scala
trackler-2.2.1.54 tracks/scala/exercises/leap/src/test/scala/LeapTest.scala
trackler-2.2.1.53 tracks/scala/exercises/leap/src/test/scala/LeapTest.scala
trackler-2.2.1.52 tracks/scala/exercises/leap/src/test/scala/LeapTest.scala
trackler-2.2.1.51 tracks/scala/exercises/leap/src/test/scala/LeapTest.scala
trackler-2.2.1.50 tracks/scala/exercises/leap/src/test/scala/LeapTest.scala
trackler-2.2.1.49 tracks/scala/exercises/leap/src/test/scala/LeapTest.scala
trackler-2.2.1.48 tracks/scala/exercises/leap/src/test/scala/LeapTest.scala