Sha256: 063138db79b81000cdcfa41c1150ad03ba37edb10dca0fbde9359162bf5c1317

Contents?: true

Size: 639 Bytes

Versions: 148

Compression:

Stored size: 639 Bytes

Contents

@Grab('org.spockframework:spock-core:1.0-groovy-2.4')
import spock.lang.*

class LeapSpec extends Specification {

    def 'a year not divisible by 4 is not a leap year'() {
        expect: new Year(2015).isLeapYear() == false
    }

    @Ignore
    def 'a year divisible by 4, but not 100, is a leap year'() {
        expect: new Year(2016).isLeapYear() == true
    }

    @Ignore
    def 'a year divisible by 100, but not 400, is not a leap year'() {
        expect: new Year(2100).isLeapYear() == false
    }

    @Ignore
    def 'a year divisible by 400 is a leap year'() {
        expect: new Year(2000).isLeapYear() == true
    }

}

Version data entries

148 entries across 148 versions & 1 rubygems

Version Path
trackler-2.2.1.10 tracks/groovy/exercises/leap/LeapSpec.groovy
trackler-2.2.1.9 tracks/groovy/exercises/leap/LeapSpec.groovy
trackler-2.2.1.8 tracks/groovy/exercises/leap/LeapSpec.groovy
trackler-2.2.1.7 tracks/groovy/exercises/leap/LeapSpec.groovy
trackler-2.2.1.6 tracks/groovy/exercises/leap/LeapSpec.groovy
trackler-2.2.1.5 tracks/groovy/exercises/leap/LeapSpec.groovy
trackler-2.2.1.4 tracks/groovy/exercises/leap/LeapSpec.groovy
trackler-2.2.1.3 tracks/groovy/exercises/leap/LeapSpec.groovy
trackler-2.2.1.2 tracks/groovy/exercises/leap/LeapSpec.groovy
trackler-2.2.1.1 tracks/groovy/exercises/leap/LeapSpec.groovy
trackler-2.2.1.0 tracks/groovy/exercises/leap/LeapSpec.groovy
trackler-2.2.0.6 tracks/groovy/exercises/leap/LeapSpec.groovy
trackler-2.2.0.5 tracks/groovy/exercises/leap/LeapSpec.groovy
trackler-2.2.0.4 tracks/groovy/exercises/leap/LeapSpec.groovy
trackler-2.2.0.3 tracks/groovy/exercises/leap/LeapSpec.groovy
trackler-2.2.0.2 tracks/groovy/exercises/leap/LeapSpec.groovy
trackler-2.2.0.1 tracks/groovy/exercises/leap/LeapSpec.groovy
trackler-2.2.0.0 tracks/groovy/exercises/leap/LeapSpec.groovy
trackler-2.1.0.55 tracks/groovy/exercises/leap/LeapSpec.groovy
trackler-2.1.0.54 tracks/groovy/exercises/leap/LeapSpec.groovy