Sha256: 89e31cea09a876a5aa703eef1b875fec593f15bdeda5d6a28fbcca874bdf4959
Contents?: true
Size: 704 Bytes
Versions: 74
Compression:
Stored size: 704 Bytes
Contents
component extends="testbox.system.BaseSpec" { function beforeAll(){ SUT = createObject( 'Leap' ); } function run(){ describe( "My Leap class", function(){ it( 'year not divisible by 4: common year', function(){ expect( SUT.leapYear( year='2015' ) ).toBeFalse(); }); it( 'year divisible by 4, not divisible by 100: leap year', function(){ expect( SUT.leapYear( year='1996' ) ).toBeTrue(); }); it( 'year divisible by 100, not divisible by 400: common year', function(){ expect( SUT.leapYear( year='2100' ) ).toBeFalse(); }); it( 'year divisible by 400: leap year', function(){ expect( SUT.leapYear( year='2000' ) ).toBeTrue(); }); }); } }
Version data entries
74 entries across 74 versions & 1 rubygems