Sha256: 0aa6d08a2c7d8bdb4c4b659d30ed7d8c591454759032730bf7376f3d7f91c4b9

Contents?: true

Size: 304 Bytes

Versions: 33

Compression:

Stored size: 304 Bytes

Contents

import ceylon.test { ... }

// Tests adapted from problem-specifications version 1.2.0
{[Integer, Boolean]*} cases =>
  {[2015, false], [1996, true], [2100, false], [2000, true]};

test
parameters(`value cases`)
void testLeapYear(Integer year, Boolean isLeap) {
  assertEquals(leapYear(year), isLeap);
}

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
trackler-2.2.1.72 tracks/ceylon/exercises/leap/source/leap/LeapTest.ceylon
trackler-2.2.1.71 tracks/ceylon/exercises/leap/source/leap/LeapTest.ceylon
trackler-2.2.1.70 tracks/ceylon/exercises/leap/source/leap/LeapTest.ceylon
trackler-2.2.1.69 tracks/ceylon/exercises/leap/source/leap/LeapTest.ceylon
trackler-2.2.1.68 tracks/ceylon/exercises/leap/source/leap/LeapTest.ceylon
trackler-2.2.1.67 tracks/ceylon/exercises/leap/source/leap/LeapTest.ceylon
trackler-2.2.1.66 tracks/ceylon/exercises/leap/source/leap/LeapTest.ceylon
trackler-2.2.1.65 tracks/ceylon/exercises/leap/source/leap/LeapTest.ceylon
trackler-2.2.1.64 tracks/ceylon/exercises/leap/source/leap/LeapTest.ceylon
trackler-2.2.1.63 tracks/ceylon/exercises/leap/source/leap/LeapTest.ceylon
trackler-2.2.1.62 tracks/ceylon/exercises/leap/source/leap/LeapTest.ceylon
trackler-2.2.1.61 tracks/ceylon/exercises/leap/source/leap/LeapTest.ceylon
trackler-2.2.1.60 tracks/ceylon/exercises/leap/source/leap/LeapTest.ceylon