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.119 tracks/cfml/exercises/leap/LeapTest.cfc
trackler-2.2.1.118 tracks/cfml/exercises/leap/LeapTest.cfc
trackler-2.2.1.117 tracks/cfml/exercises/leap/LeapTest.cfc
trackler-2.2.1.116 tracks/cfml/exercises/leap/LeapTest.cfc
trackler-2.2.1.115 tracks/cfml/exercises/leap/LeapTest.cfc
trackler-2.2.1.114 tracks/cfml/exercises/leap/LeapTest.cfc
trackler-2.2.1.113 tracks/cfml/exercises/leap/LeapTest.cfc
trackler-2.2.1.111 tracks/cfml/exercises/leap/LeapTest.cfc
trackler-2.2.1.110 tracks/cfml/exercises/leap/LeapTest.cfc
trackler-2.2.1.109 tracks/cfml/exercises/leap/LeapTest.cfc
trackler-2.2.1.108 tracks/cfml/exercises/leap/LeapTest.cfc
trackler-2.2.1.107 tracks/cfml/exercises/leap/LeapTest.cfc
trackler-2.2.1.106 tracks/cfml/exercises/leap/LeapTest.cfc
trackler-2.2.1.105 tracks/cfml/exercises/leap/LeapTest.cfc