Sha256: 80c681638e61362e0dcce80f5c1de906a8e8ee7f3fb154895e76649913887642

Contents?: true

Size: 908 Bytes

Versions: 74

Compression:

Stored size: 908 Bytes

Contents

component extends="testbox.system.BaseSpec" {

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

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

			describe( 'Abbreviate a phrase', function(){

				it( 'basic', function(){
					expect( SUT.abbreviate( phrase='Portable Network Graphics' ) ).toBe( 'PNG' );
				});

				it( 'lowercase words', function(){
					expect( SUT.abbreviate( phrase='Ruby on Rails' ) ).toBe( 'ROR' );
				});

				it( 'punctuation', function(){
					expect( SUT.abbreviate( phrase='First In,  First Out' ) ).toBe( 'FIFO' );
				});

				it( 'all caps word', function(){
					expect( SUT.abbreviate( phrase='GNU Image Manipulation Program' ) ).toBe( 'GIMP' );
				});

				it( 'punctuation without whitespace', function(){
					expect( SUT.abbreviate( phrase='Complementary metal-oxide semiconductor' ) ).toBe( 'CMOS' );
				});

			});

		});
		
	}
 
}

Version data entries

74 entries across 74 versions & 1 rubygems

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