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.104 tracks/cfml/exercises/gigasecond/GigasecondTest.cfc
trackler-2.2.1.103 tracks/cfml/exercises/gigasecond/GigasecondTest.cfc
trackler-2.2.1.102 tracks/cfml/exercises/gigasecond/GigasecondTest.cfc
trackler-2.2.1.101 tracks/cfml/exercises/gigasecond/GigasecondTest.cfc
trackler-2.2.1.100 tracks/cfml/exercises/gigasecond/GigasecondTest.cfc
trackler-2.2.1.99 tracks/cfml/exercises/gigasecond/GigasecondTest.cfc
trackler-2.2.1.98 tracks/cfml/exercises/gigasecond/GigasecondTest.cfc
trackler-2.2.1.97 tracks/cfml/exercises/gigasecond/GigasecondTest.cfc
trackler-2.2.1.96 tracks/cfml/exercises/gigasecond/GigasecondTest.cfc
trackler-2.2.1.95 tracks/cfml/exercises/gigasecond/GigasecondTest.cfc
trackler-2.2.1.94 tracks/cfml/exercises/gigasecond/GigasecondTest.cfc
trackler-2.2.1.93 tracks/cfml/exercises/gigasecond/GigasecondTest.cfc
trackler-2.2.1.92 tracks/cfml/exercises/gigasecond/GigasecondTest.cfc
trackler-2.2.1.91 tracks/cfml/exercises/gigasecond/GigasecondTest.cfc
trackler-2.2.1.90 tracks/cfml/exercises/gigasecond/GigasecondTest.cfc
trackler-2.2.1.89 tracks/cfml/exercises/gigasecond/GigasecondTest.cfc
trackler-2.2.1.88 tracks/cfml/exercises/gigasecond/GigasecondTest.cfc
trackler-2.2.1.87 tracks/cfml/exercises/gigasecond/GigasecondTest.cfc
trackler-2.2.1.86 tracks/cfml/exercises/gigasecond/GigasecondTest.cfc
trackler-2.2.1.85 tracks/cfml/exercises/gigasecond/GigasecondTest.cfc