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