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

Version Path
trackler-2.2.1.180 tracks/cfml/exercises/leap/LeapTest.cfc
trackler-2.2.1.179 tracks/cfml/exercises/leap/LeapTest.cfc
trackler-2.2.1.178 tracks/cfml/exercises/leap/LeapTest.cfc
trackler-2.2.1.177 tracks/cfml/exercises/leap/LeapTest.cfc
trackler-2.2.1.176 tracks/cfml/exercises/leap/LeapTest.cfc
trackler-2.2.1.175 tracks/cfml/exercises/leap/LeapTest.cfc
trackler-2.2.1.174 tracks/cfml/exercises/leap/LeapTest.cfc
trackler-2.2.1.173 tracks/cfml/exercises/leap/LeapTest.cfc
trackler-2.2.1.172 tracks/cfml/exercises/leap/LeapTest.cfc
trackler-2.2.1.171 tracks/cfml/exercises/leap/LeapTest.cfc
trackler-2.2.1.170 tracks/cfml/exercises/leap/LeapTest.cfc
trackler-2.2.1.169 tracks/cfml/exercises/leap/LeapTest.cfc
trackler-2.2.1.167 tracks/cfml/exercises/leap/LeapTest.cfc
trackler-2.2.1.166 tracks/cfml/exercises/leap/LeapTest.cfc
trackler-2.2.1.165 tracks/cfml/exercises/leap/LeapTest.cfc
trackler-2.2.1.164 tracks/cfml/exercises/leap/LeapTest.cfc
trackler-2.2.1.163 tracks/cfml/exercises/leap/LeapTest.cfc
trackler-2.2.1.162 tracks/cfml/exercises/leap/LeapTest.cfc
trackler-2.2.1.161 tracks/cfml/exercises/leap/LeapTest.cfc
trackler-2.2.1.160 tracks/cfml/exercises/leap/LeapTest.cfc