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.1.0.38 tracks/scala/exercises/pig-latin/src/test/scala/PigLatinTest.scala
trackler-2.1.0.37 tracks/scala/exercises/pig-latin/src/test/scala/PigLatinTest.scala
trackler-2.1.0.36 tracks/scala/exercises/pig-latin/src/test/scala/PigLatinTest.scala
trackler-2.1.0.34 tracks/scala/exercises/pig-latin/src/test/scala/PigLatinTest.scala
trackler-2.1.0.33 tracks/scala/exercises/pig-latin/src/test/scala/PigLatinTest.scala
trackler-2.1.0.32 tracks/scala/exercises/pig-latin/src/test/scala/PigLatinTest.scala
trackler-2.1.0.31 tracks/scala/exercises/pig-latin/src/test/scala/PigLatinTest.scala
trackler-2.1.0.30 tracks/scala/exercises/pig-latin/src/test/scala/PigLatinTest.scala
trackler-2.1.0.29 tracks/scala/exercises/pig-latin/src/test/scala/PigLatinTest.scala
trackler-2.1.0.28 tracks/scala/exercises/pig-latin/src/test/scala/PigLatinTest.scala
trackler-2.1.0.27 tracks/scala/exercises/pig-latin/src/test/scala/PigLatinTest.scala
trackler-2.1.0.26 tracks/scala/exercises/pig-latin/src/test/scala/PigLatinTest.scala
trackler-2.1.0.25 tracks/scala/exercises/pig-latin/src/test/scala/PigLatinTest.scala
trackler-2.1.0.24 tracks/scala/exercises/pig-latin/src/test/scala/PigLatinTest.scala
trackler-2.1.0.23 tracks/scala/exercises/pig-latin/src/test/scala/PigLatinTest.scala
trackler-2.1.0.22 tracks/scala/exercises/pig-latin/src/test/scala/PigLatinTest.scala
trackler-2.1.0.21 tracks/scala/exercises/pig-latin/src/test/scala/PigLatinTest.scala
trackler-2.1.0.20 tracks/scala/exercises/pig-latin/src/test/scala/PigLatinTest.scala
trackler-2.1.0.19 tracks/scala/exercises/pig-latin/src/test/scala/PigLatinTest.scala
trackler-2.1.0.18 tracks/scala/exercises/pig-latin/src/test/scala/PigLatinTest.scala