Sha256: 1fa78b645e260e1ad32626bb149e270feb37376aa689e8a38023314bce92541c
Contents?: true
Size: 1.54 KB
Versions: 100
Compression:
Stored size: 1.54 KB
Contents
import org.scalatest.{Matchers, FunSuite} /** @version 1.0.0 */ class AtbashCipherTest extends FunSuite with Matchers { test("encode yes") { AtbashCipher.encode("yes") should be ("bvh") } test("encode no") { pending AtbashCipher.encode("no") should be ("ml") } test("encode OMG") { pending AtbashCipher.encode("OMG") should be ("lnt") } test("encode spaces") { pending AtbashCipher.encode("O M G") should be ("lnt") } test("encode mindblowingly") { pending AtbashCipher.encode("mindblowingly") should be ("nrmwy oldrm tob") } test("encode numbers") { pending AtbashCipher.encode("Testing,1 2 3, testing.") should be ("gvhgr mt123 gvhgr mt") } test("encode deep thought") { pending AtbashCipher.encode("Truth is fiction.") should be ("gifgs rhurx grlm") } test("encode all the letters") { pending AtbashCipher.encode("The quick brown fox jumps over the lazy dog.") should be ("gsvjf rxpyi ldmul cqfnk hlevi gsvoz abwlt") } test("decode exercism") { pending AtbashCipher.decode("vcvix rhn") should be ("exercism") } test("decode a sentence") { pending AtbashCipher.decode("zmlyh gzxov rhlug vmzhg vkkrm thglm v") should be ("anobstacleisoftenasteppingstone") } test("decode numbers") { pending AtbashCipher.decode("gvhgr mt123 gvhgr mt") should be ("testing123testing") } test("decode all the letters") { pending AtbashCipher.decode("gsvjf rxpyi ldmul cqfnk hlevi gsvoz abwlt") should be ("thequickbrownfoxjumpsoverthelazydog") } }
Version data entries
100 entries across 100 versions & 1 rubygems