Sha256: 00c405f1bd6325641e3de27b08a1cb08e4a8654e735f0fdfdf9aecdd74271315

Contents?: true

Size: 1002 Bytes

Versions: 72

Compression:

Stored size: 1002 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( input='2011-04-25' ) ).toBe( '2043-01-01T01:46:40' );
				});

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

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

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

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

			});

		});
		
	}
 
}

Version data entries

72 entries across 71 versions & 1 rubygems

Version Path
trackler-2.2.1.84 tracks/cfml/exercises/gigasecond/GigasecondTest.cfc
trackler-2.2.1.83 tracks/cfml/exercises/gigasecond/GigasecondTest.cfc
trackler-2.2.1.82 tracks/cfml/exercises/gigasecond/GigasecondTest.cfc
trackler-2.2.1.81 tracks/cfml/exercises/gigasecond/GigasecondTest.cfc
trackler-2.2.1.80 tracks/cfml/exercises/gigasecond/GigasecondTest.cfc
trackler-2.2.1.79 tracks/cfml/exercises/gigasecond/GigasecondTest.cfc
trackler-2.2.1.78 tracks/cfml/exercises/gigasecond/GigasecondTest.cfc
trackler-2.2.1.77 tracks/cfml/exercises/gigasecond/GigasecondTest.cfc
trackler-2.2.1.76 tracks/cfml/exercises/gigasecond/GigasecondTest.cfc
trackler-2.2.1.75 tracks/cfml/exercises/gigasecond/GigasecondTest.cfc
trackler-2.2.1.74 tracks/cfml/exercises/gigasecond/GigasecondTest.cfc
trackler-2.2.1.73 tracks/cfml/exercises/gigasecond/GigasecondTest.cfc
trackler-2.2.1.72 tracks/cfml/exercises/gigasecond/GigasecondTest.cfc
trackler-2.2.1.71 tracks/cfml/exercises/gigasecond/GigasecondTest.cfc
trackler-2.2.1.70 tracks/cfml/exercises/gigasecond/GigasecondTest.cfc
trackler-2.2.1.69 tracks/cfml/exercises/gigasecond/GigasecondTest.cfc
trackler-2.2.1.68 tracks/cfml/exercises/gigasecond/GigasecondTest.cfc
trackler-2.2.1.67 tracks/cfml/exercises/gigasecond/GigasecondTest.cfc
trackler-2.2.1.66 tracks/cfml/exercises/gigasecond/GigasecondTest.cfc
trackler-2.2.1.65 tracks/cfml/exercises/gigasecond/GigasecondTest.cfc