Sha256: 1f6963f178fa4d649b8bff5942331f8ee08666f67b31b3e3503b4b3ebc4b43eb

Contents?: true

Size: 1022 Bytes

Versions: 74

Compression:

Stored size: 1022 Bytes

Contents

component extends="testbox.system.BaseSpec" {

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

	function run(){
	
		describe( "My Gigasecond class", function(){			

			describe( 'Add one gigasecond to the input.', function(){

				it( 'date only specification of time', function(){
					expect( SUT.add( birthdate='2011-04-25' ) ).toBe( '2043-01-01T01:46:40' );
				});

				it( 'second test for date only specification of time', function(){
					expect( SUT.add( birthdate='1977-06-13' ) ).toBe( '2009-02-19T01:46:40' );
				});

				it( 'third test for date only specification of time', function(){
					expect( SUT.add( birthdate='1959-07-19' ) ).toBe( '1991-03-27T01:46:40' );
				});

				it( 'full time specified', function(){
					expect( SUT.add( birthdate='2015-01-24T22:00:00' ) ).toBe( '2046-10-02T23:46:40' );
				});

				it( 'full time with day roll-over', function(){
					expect( SUT.add( birthdate='2015-01-24T23:59:59' ) ).toBe( '2046-10-03T01:46:39' );
				});

			});

		});
		
	}
 
}

Version data entries

74 entries across 74 versions & 1 rubygems

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