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.5.3 tracks/groovy/exercises/leap/LeapTest.groovy
trackler-2.0.5.2 tracks/groovy/exercises/leap/LeapTest.groovy
trackler-2.0.5.1 tracks/groovy/exercises/leap/LeapTest.groovy
trackler-2.0.5.0 tracks/groovy/exercises/leap/LeapTest.groovy
trackler-2.0.4.0 tracks/groovy/exercises/leap/LeapTest.groovy
trackler-2.0.3.9 tracks/groovy/exercises/leap/LeapTest.groovy
trackler-2.0.3.8 tracks/groovy/exercises/leap/LeapTest.groovy
trackler-2.0.3.7 tracks/groovy/exercises/leap/LeapTest.groovy
trackler-2.0.3.6 tracks/groovy/exercises/leap/LeapTest.groovy
trackler-2.0.3.5 tracks/groovy/exercises/leap/LeapTest.groovy
trackler-2.0.3.4 tracks/groovy/exercises/leap/LeapTest.groovy
trackler-2.0.3.3 tracks/groovy/exercises/leap/LeapTest.groovy
trackler-2.0.3.2 tracks/groovy/exercises/leap/LeapTest.groovy
trackler-2.0.3.1 tracks/groovy/exercises/leap/LeapTest.groovy
trackler-2.0.3.0 tracks/groovy/exercises/leap/LeapTest.groovy
trackler-2.0.2.0 tracks/groovy/exercises/leap/LeapTest.groovy
trackler-2.0.1.2 tracks/groovy/exercises/leap/LeapTest.groovy
trackler-2.0.1.1 tracks/groovy/exercises/leap/LeapTest.groovy
trackler-2.0.1.0 tracks/groovy/exercises/leap/LeapTest.groovy
trackler-2.0.0.10 tracks/groovy/exercises/leap/LeapTest.groovy