Sha256: ff4f33454b096e542a9ca72d8b7bd58955e8b282c2f53eae72707bb56e79fb8d

Contents?: true

Size: 523 Bytes

Versions: 80

Compression:

Stored size: 523 Bytes

Contents

import org.junit.Test
import static org.junit.Assert.assertTrue
import static org.junit.Assert.assertFalse

class LeapTest {
  @Test
  void testLeapYear() {
    assertTrue new Year().isLeap(1996)
  }

  @Test
  void testNonLeapYear() {
    assertFalse new Year().isLeap(1997)
  }

  @Test
  void testNonLeapYearEven() {
   assertFalse new Year().isLeap(1998) 
  }

  @Test
  void testCentury() {
    assertFalse new Year().isLeap(1900)
  }

  @Test
  void testFourthCentury() {
    assertTrue new Year().isLeap(2400)
  }
}

Version data entries

80 entries across 80 versions & 1 rubygems

Version Path
trackler-2.0.6.4 tracks/groovy/exercises/leap/LeapTest.groovy
trackler-2.0.6.3 tracks/groovy/exercises/leap/LeapTest.groovy
trackler-2.0.6.2 tracks/groovy/exercises/leap/LeapTest.groovy
trackler-2.0.6.1 tracks/groovy/exercises/leap/LeapTest.groovy
trackler-2.0.6.0 tracks/groovy/exercises/leap/LeapTest.groovy
trackler-2.0.5.18 tracks/groovy/exercises/leap/LeapTest.groovy
trackler-2.0.5.17 tracks/groovy/exercises/leap/LeapTest.groovy
trackler-2.0.5.16 tracks/groovy/exercises/leap/LeapTest.groovy
trackler-2.0.5.15 tracks/groovy/exercises/leap/LeapTest.groovy
trackler-2.0.5.14 tracks/groovy/exercises/leap/LeapTest.groovy
trackler-2.0.5.13 tracks/groovy/exercises/leap/LeapTest.groovy
trackler-2.0.5.12 tracks/groovy/exercises/leap/LeapTest.groovy
trackler-2.0.5.11 tracks/groovy/exercises/leap/LeapTest.groovy
trackler-2.0.5.10 tracks/groovy/exercises/leap/LeapTest.groovy
trackler-2.0.5.9 tracks/groovy/exercises/leap/LeapTest.groovy
trackler-2.0.5.8 tracks/groovy/exercises/leap/LeapTest.groovy
trackler-2.0.5.7 tracks/groovy/exercises/leap/LeapTest.groovy
trackler-2.0.5.6 tracks/groovy/exercises/leap/LeapTest.groovy
trackler-2.0.5.5 tracks/groovy/exercises/leap/LeapTest.groovy
trackler-2.0.5.4 tracks/groovy/exercises/leap/LeapTest.groovy