Sha256: c273e77da0ea5cdf682d058292ae3768654e5e6e42534a1c39025c34837adc44

Contents?: true

Size: 639 Bytes

Versions: 168

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 Leap(2015).isLeapYear() == false
    }

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

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

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

}

Version data entries

168 entries across 168 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/groovy/exercises/leap/LeapSpec.groovy
trackler-2.2.1.179 tracks/groovy/exercises/leap/LeapSpec.groovy
trackler-2.2.1.178 tracks/groovy/exercises/leap/LeapSpec.groovy
trackler-2.2.1.177 tracks/groovy/exercises/leap/LeapSpec.groovy
trackler-2.2.1.176 tracks/groovy/exercises/leap/LeapSpec.groovy
trackler-2.2.1.175 tracks/groovy/exercises/leap/LeapSpec.groovy
trackler-2.2.1.174 tracks/groovy/exercises/leap/LeapSpec.groovy
trackler-2.2.1.173 tracks/groovy/exercises/leap/LeapSpec.groovy
trackler-2.2.1.172 tracks/groovy/exercises/leap/LeapSpec.groovy
trackler-2.2.1.171 tracks/groovy/exercises/leap/LeapSpec.groovy
trackler-2.2.1.170 tracks/groovy/exercises/leap/LeapSpec.groovy
trackler-2.2.1.169 tracks/groovy/exercises/leap/LeapSpec.groovy
trackler-2.2.1.167 tracks/groovy/exercises/leap/LeapSpec.groovy
trackler-2.2.1.166 tracks/groovy/exercises/leap/LeapSpec.groovy
trackler-2.2.1.165 tracks/groovy/exercises/leap/LeapSpec.groovy
trackler-2.2.1.164 tracks/groovy/exercises/leap/LeapSpec.groovy
trackler-2.2.1.163 tracks/groovy/exercises/leap/LeapSpec.groovy
trackler-2.2.1.162 tracks/groovy/exercises/leap/LeapSpec.groovy
trackler-2.2.1.161 tracks/groovy/exercises/leap/LeapSpec.groovy
trackler-2.2.1.160 tracks/groovy/exercises/leap/LeapSpec.groovy