Sha256: 2c4d074a8f294109ad175c86f0e9970469a5f563bc047465a19b362fa7e39a12

Contents?: true

Size: 1.13 KB

Versions: 221

Compression:

Stored size: 1.13 KB

Contents

import org.scalatest.{Matchers, FlatSpec}

class PigLatinTest extends FlatSpec with Matchers {
  it should "translate beginning with vowels" in {
    PigLatin.translate("apple") should be ("appleay")
    PigLatin.translate("ear") should be ("earay")
  }

  it should "translate beginning with single letter consonant clusters" in {
    pending
    PigLatin.translate("pig") should be ("igpay")
    PigLatin.translate("koala") should be ("oalakay")
    PigLatin.translate("qat") should be ("atqay")
  }

  it should "translate beginning with multiple letter consonant clusters" in {
    pending
    PigLatin.translate("chair") should be ("airchay")
    PigLatin.translate("therapy") should be ("erapythay")
    PigLatin.translate("thrush") should be ("ushthray")
    PigLatin.translate("school") should be ("oolschay")
  }

  it should "translate beginning with consonant clusters with qu" in {
    pending
    PigLatin.translate("queen") should be ("eenquay")
    PigLatin.translate("square") should be ("aresquay")
  }

  it should "translate phrases" in {
    pending
    PigLatin.translate("quick fast run") should be ("ickquay astfay unray")
  }
}

Version data entries

221 entries across 221 versions & 1 rubygems

Version Path
trackler-2.2.1.15 tracks/scala/exercises/pig-latin/src/test/scala/PigLatinTest.scala
trackler-2.2.1.14 tracks/scala/exercises/pig-latin/src/test/scala/PigLatinTest.scala
trackler-2.2.1.13 tracks/scala/exercises/pig-latin/src/test/scala/PigLatinTest.scala
trackler-2.2.1.12 tracks/scala/exercises/pig-latin/src/test/scala/PigLatinTest.scala
trackler-2.2.1.11 tracks/scala/exercises/pig-latin/src/test/scala/PigLatinTest.scala
trackler-2.2.1.10 tracks/scala/exercises/pig-latin/src/test/scala/PigLatinTest.scala
trackler-2.2.1.9 tracks/scala/exercises/pig-latin/src/test/scala/PigLatinTest.scala
trackler-2.2.1.8 tracks/scala/exercises/pig-latin/src/test/scala/PigLatinTest.scala
trackler-2.2.1.7 tracks/scala/exercises/pig-latin/src/test/scala/PigLatinTest.scala
trackler-2.2.1.6 tracks/scala/exercises/pig-latin/src/test/scala/PigLatinTest.scala
trackler-2.2.1.5 tracks/scala/exercises/pig-latin/src/test/scala/PigLatinTest.scala
trackler-2.2.1.4 tracks/scala/exercises/pig-latin/src/test/scala/PigLatinTest.scala
trackler-2.2.1.3 tracks/scala/exercises/pig-latin/src/test/scala/PigLatinTest.scala
trackler-2.2.1.2 tracks/scala/exercises/pig-latin/src/test/scala/PigLatinTest.scala
trackler-2.2.1.1 tracks/scala/exercises/pig-latin/src/test/scala/PigLatinTest.scala
trackler-2.2.1.0 tracks/scala/exercises/pig-latin/src/test/scala/PigLatinTest.scala
trackler-2.2.0.6 tracks/scala/exercises/pig-latin/src/test/scala/PigLatinTest.scala
trackler-2.2.0.5 tracks/scala/exercises/pig-latin/src/test/scala/PigLatinTest.scala
trackler-2.2.0.4 tracks/scala/exercises/pig-latin/src/test/scala/PigLatinTest.scala
trackler-2.2.0.3 tracks/scala/exercises/pig-latin/src/test/scala/PigLatinTest.scala