Sha256: 41680a8964d93dd79da819467ed078a239cf33f4f038cb84c4aece7a2fa8d330

Contents?: true

Size: 798 Bytes

Versions: 131

Compression:

Stored size: 798 Bytes

Contents

import org.scalatest.{Matchers, FunSuite}

/** @version 1.1.0 */
class AcronymTest extends FunSuite with Matchers {

  test("basic") { 
    Acronym.abbreviate("Portable Network Graphics") should be ("PNG")
  }

  test("lowercase words") { 
    pending
    Acronym.abbreviate("Ruby on Rails") should be ("ROR")
  }

  test("punctuation") { 
    pending
    Acronym.abbreviate("First In, First Out") should be ("FIFO")
  }

  test("all caps words") { 
    pending
    Acronym.abbreviate("PHP: Hypertext Preprocessor") should be ("PHP")
  }

  test("non-acronym all caps word") { 
    pending
    Acronym.abbreviate("GNU Image Manipulation Program") should be ("GIMP")
  }

  test("hyphenated") { 
    pending
    Acronym.abbreviate("Complementary metal-oxide semiconductor") should be ("CMOS")
  }
}

Version data entries

131 entries across 131 versions & 1 rubygems

Version Path
trackler-2.2.1.24 tracks/scala/exercises/acronym/src/test/scala/AcronymTest.scala
trackler-2.2.1.23 tracks/scala/exercises/acronym/src/test/scala/AcronymTest.scala
trackler-2.2.1.22 tracks/scala/exercises/acronym/src/test/scala/AcronymTest.scala
trackler-2.2.1.21 tracks/scala/exercises/acronym/src/test/scala/AcronymTest.scala
trackler-2.2.1.20 tracks/scala/exercises/acronym/src/test/scala/AcronymTest.scala
trackler-2.2.1.19 tracks/scala/exercises/acronym/src/test/scala/AcronymTest.scala
trackler-2.2.1.18 tracks/scala/exercises/acronym/src/test/scala/AcronymTest.scala
trackler-2.2.1.17 tracks/scala/exercises/acronym/src/test/scala/AcronymTest.scala
trackler-2.2.1.16 tracks/scala/exercises/acronym/src/test/scala/AcronymTest.scala
trackler-2.2.1.15 tracks/scala/exercises/acronym/src/test/scala/AcronymTest.scala
trackler-2.2.1.14 tracks/scala/exercises/acronym/src/test/scala/AcronymTest.scala
trackler-2.2.1.13 tracks/scala/exercises/acronym/src/test/scala/AcronymTest.scala
trackler-2.2.1.12 tracks/scala/exercises/acronym/src/test/scala/AcronymTest.scala
trackler-2.2.1.11 tracks/scala/exercises/acronym/src/test/scala/AcronymTest.scala
trackler-2.2.1.10 tracks/scala/exercises/acronym/src/test/scala/AcronymTest.scala
trackler-2.2.1.9 tracks/scala/exercises/acronym/src/test/scala/AcronymTest.scala
trackler-2.2.1.8 tracks/scala/exercises/acronym/src/test/scala/AcronymTest.scala
trackler-2.2.1.7 tracks/scala/exercises/acronym/src/test/scala/AcronymTest.scala
trackler-2.2.1.6 tracks/scala/exercises/acronym/src/test/scala/AcronymTest.scala
trackler-2.2.1.5 tracks/scala/exercises/acronym/src/test/scala/AcronymTest.scala