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.24 tracks/groovy/exercises/leap/LeapTest.groovy
trackler-2.0.6.23 tracks/groovy/exercises/leap/LeapTest.groovy
trackler-2.0.6.22 tracks/groovy/exercises/leap/LeapTest.groovy
trackler-2.0.6.21 tracks/groovy/exercises/leap/LeapTest.groovy
trackler-2.0.6.20 tracks/groovy/exercises/leap/LeapTest.groovy
trackler-2.0.6.19 tracks/groovy/exercises/leap/LeapTest.groovy
trackler-2.0.6.18 tracks/groovy/exercises/leap/LeapTest.groovy
trackler-2.0.6.17 tracks/groovy/exercises/leap/LeapTest.groovy
trackler-2.0.6.16 tracks/groovy/exercises/leap/LeapTest.groovy
trackler-2.0.6.15 tracks/groovy/exercises/leap/LeapTest.groovy
trackler-2.0.6.14 tracks/groovy/exercises/leap/LeapTest.groovy
trackler-2.0.6.13 tracks/groovy/exercises/leap/LeapTest.groovy
trackler-2.0.6.12 tracks/groovy/exercises/leap/LeapTest.groovy
trackler-2.0.6.11 tracks/groovy/exercises/leap/LeapTest.groovy
trackler-2.0.6.10 tracks/groovy/exercises/leap/LeapTest.groovy
trackler-2.0.6.9 tracks/groovy/exercises/leap/LeapTest.groovy
trackler-2.0.6.8 tracks/groovy/exercises/leap/LeapTest.groovy
trackler-2.0.6.7 tracks/groovy/exercises/leap/LeapTest.groovy
trackler-2.0.6.6 tracks/groovy/exercises/leap/LeapTest.groovy
trackler-2.0.6.5 tracks/groovy/exercises/leap/LeapTest.groovy