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.4 tracks/scala/exercises/acronym/src/test/scala/AcronymTest.scala
trackler-2.2.1.3 tracks/scala/exercises/acronym/src/test/scala/AcronymTest.scala
trackler-2.2.1.2 tracks/scala/exercises/acronym/src/test/scala/AcronymTest.scala
trackler-2.2.1.1 tracks/scala/exercises/acronym/src/test/scala/AcronymTest.scala
trackler-2.2.1.0 tracks/scala/exercises/acronym/src/test/scala/AcronymTest.scala
trackler-2.2.0.6 tracks/scala/exercises/acronym/src/test/scala/AcronymTest.scala
trackler-2.2.0.5 tracks/scala/exercises/acronym/src/test/scala/AcronymTest.scala
trackler-2.2.0.4 tracks/scala/exercises/acronym/src/test/scala/AcronymTest.scala
trackler-2.2.0.3 tracks/scala/exercises/acronym/src/test/scala/AcronymTest.scala
trackler-2.2.0.2 tracks/scala/exercises/acronym/src/test/scala/AcronymTest.scala
trackler-2.2.0.1 tracks/scala/exercises/acronym/src/test/scala/AcronymTest.scala
trackler-2.2.0.0 tracks/scala/exercises/acronym/src/test/scala/AcronymTest.scala
trackler-2.1.0.55 tracks/scala/exercises/acronym/src/test/scala/AcronymTest.scala
trackler-2.1.0.54 tracks/scala/exercises/acronym/src/test/scala/AcronymTest.scala
trackler-2.1.0.53 tracks/scala/exercises/acronym/src/test/scala/AcronymTest.scala
trackler-2.1.0.52 tracks/scala/exercises/acronym/src/test/scala/AcronymTest.scala
trackler-2.1.0.51 tracks/scala/exercises/acronym/src/test/scala/AcronymTest.scala
trackler-2.1.0.50 tracks/scala/exercises/acronym/src/test/scala/AcronymTest.scala
trackler-2.1.0.49 tracks/scala/exercises/acronym/src/test/scala/AcronymTest.scala
trackler-2.1.0.48 tracks/scala/exercises/acronym/src/test/scala/AcronymTest.scala