Sha256: 2b2ac464316156737d526e95265daf87c46006ff3b4b6df80a06d6a830063f41
Contents?: true
Size: 745 Bytes
Versions: 251
Compression:
Stored size: 745 Bytes
Contents
component displayName="Leap Tests" extends="testbox.system.BaseSpec" { // executes before all tests function beforeTests(){ leapObj = createObject("leap"); } function testLeapYear() { $assert.isTrue(leapObj.isLeapYear(1996)); } function testNonLeapYear() { $assert.isFalse(leapObj.isLeapYear(1997)); } function testNonLeapEvenYear() { $assert.isFalse(leapObj.isLeapYear(1998)); } function testCentury() { $assert.isFalse(leapObj.isLeapYear(1900)); } function testfourthCentury() { $assert.isTrue(leapObj.isLeapYear(2400)); } function testY2K() { $assert.isTrue(leapObj.isLeapYear(2000)); } // executes after all tests function afterTests(){} }
Version data entries
251 entries across 251 versions & 1 rubygems