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.139 tracks/cfml/exercises/acronym/AcronymTest.cfc
trackler-2.2.1.138 tracks/cfml/exercises/acronym/AcronymTest.cfc
trackler-2.2.1.137 tracks/cfml/exercises/acronym/AcronymTest.cfc
trackler-2.2.1.136 tracks/cfml/exercises/acronym/AcronymTest.cfc
trackler-2.2.1.135 tracks/cfml/exercises/acronym/AcronymTest.cfc
trackler-2.2.1.134 tracks/cfml/exercises/acronym/AcronymTest.cfc
trackler-2.2.1.133 tracks/cfml/exercises/acronym/AcronymTest.cfc
trackler-2.2.1.132 tracks/cfml/exercises/acronym/AcronymTest.cfc
trackler-2.2.1.131 tracks/cfml/exercises/acronym/AcronymTest.cfc
trackler-2.2.1.130 tracks/cfml/exercises/acronym/AcronymTest.cfc
trackler-2.2.1.129 tracks/cfml/exercises/acronym/AcronymTest.cfc
trackler-2.2.1.128 tracks/cfml/exercises/acronym/AcronymTest.cfc
trackler-2.2.1.127 tracks/cfml/exercises/acronym/AcronymTest.cfc
trackler-2.2.1.126 tracks/cfml/exercises/acronym/AcronymTest.cfc
trackler-2.2.1.125 tracks/cfml/exercises/acronym/AcronymTest.cfc
trackler-2.2.1.124 tracks/cfml/exercises/acronym/AcronymTest.cfc
trackler-2.2.1.123 tracks/cfml/exercises/acronym/AcronymTest.cfc
trackler-2.2.1.122 tracks/cfml/exercises/acronym/AcronymTest.cfc
trackler-2.2.1.121 tracks/cfml/exercises/acronym/AcronymTest.cfc
trackler-2.2.1.120 tracks/cfml/exercises/acronym/AcronymTest.cfc