Sha256: 45b0431df461573cb0364908439c8d292d32b6df020a67b2b74a193dec873cb0

Contents?: true

Size: 855 Bytes

Versions: 72

Compression:

Stored size: 855 Bytes

Contents

component extends="testbox.system.BaseSpec" {

	function beforeAll(){
	  SUT = createObject( 'Leap' );
	}

	function run(){
	
		describe( "My Leap year calculator", function(){
			
			it( "should detect a leap year", function(){
				expect( SUT.isLeapYear( 1996 ) ).toBeTrue();
			});
			
			it( "should detect a non-leap year", function(){
				expect( SUT.isLeapYear( 1997 ) ).toBeFalse();
			});
			
			it( "should detect a non-leap even year", function(){
				expect( SUT.isLeapYear( 1998 ) ).toBeFalse();
			});
			
			it( "should detect a century", function(){
				expect( SUT.isLeapYear( 1900 ) ).toBeFalse();
			});
			
			it( "should detect a fourth century", function(){
				expect( SUT.isLeapYear( 2400 ) ).toBeTrue();
			});
			
			it( "should detect Y2K", function(){
				expect( SUT.isLeapYear( 2000 ) ).toBeTrue();
			});
			
		});
		
	}
 
}

Version data entries

72 entries across 71 versions & 1 rubygems

Version Path
trackler-2.2.1.104 tracks/cfml/exercises/leap/LeapTest.cfc
trackler-2.2.1.103 tracks/cfml/exercises/leap/LeapTest.cfc
trackler-2.2.1.102 tracks/cfml/exercises/leap/LeapTest.cfc
trackler-2.2.1.101 tracks/cfml/exercises/leap/LeapTest.cfc
trackler-2.2.1.100 tracks/cfml/exercises/leap/LeapTest.cfc
trackler-2.2.1.99 tracks/cfml/exercises/leap/LeapTest.cfc
trackler-2.2.1.98 tracks/cfml/exercises/leap/LeapTest.cfc
trackler-2.2.1.97 tracks/cfml/exercises/leap/LeapTest.cfc
trackler-2.2.1.96 tracks/cfml/exercises/leap/LeapTest.cfc
trackler-2.2.1.95 tracks/cfml/exercises/leap/LeapTest.cfc
trackler-2.2.1.94 tracks/cfml/exercises/leap/LeapTest.cfc
trackler-2.2.1.93 tracks/cfml/exercises/leap/LeapTest.cfc
trackler-2.2.1.92 tracks/cfml/exercises/leap/LeapTest.cfc
trackler-2.2.1.91 tracks/cfml/exercises/leap/LeapTest.cfc
trackler-2.2.1.90 tracks/cfml/exercises/leap/LeapTest.cfc
trackler-2.2.1.89 tracks/cfml/exercises/leap/LeapTest.cfc
trackler-2.2.1.88 tracks/cfml/exercises/leap/LeapTest.cfc
trackler-2.2.1.87 tracks/cfml/exercises/leap/LeapTest.cfc
trackler-2.2.1.86 tracks/cfml/exercises/leap/LeapTest.cfc
trackler-2.2.1.85 tracks/cfml/exercises/leap/LeapTest.cfc