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