Sha256: dbfeca952531750002c829a1ed102c840177b9e919fd1ce7bb3104cd22b6aad3

Contents?: true

Size: 304 Bytes

Versions: 23

Compression:

Stored size: 304 Bytes

Contents

import ceylon.test { ... }

// Tests adapted from problem-specifications version 1.3.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

23 entries across 23 versions & 1 rubygems

Version Path
trackler-2.2.1.95 tracks/ceylon/exercises/leap/source/leap/LeapTest.ceylon
trackler-2.2.1.94 tracks/ceylon/exercises/leap/source/leap/LeapTest.ceylon
trackler-2.2.1.93 tracks/ceylon/exercises/leap/source/leap/LeapTest.ceylon