Sha256: 5a26faec5b3bdec9f4a48c8cfcfcc095024340f532df112c76f2a0828c5778c1
Contents?: true
Size: 1.13 KB
Versions: 72
Compression:
Stored size: 1.13 KB
Contents
import org.scalatest.{Matchers, FunSuite} /** @version 3.2.0 */ class CryptoSquareTest extends FunSuite with Matchers { test("empty plaintext results in an empty ciphertext") { CryptoSquare.ciphertext("") should be("") } test("Lowercase") { pending CryptoSquare.ciphertext("A") should be("a") } test("Remove spaces") { pending CryptoSquare.ciphertext(" b ") should be("b") } test("Remove punctuation") { pending CryptoSquare.ciphertext("@1,%!") should be("1") } test("9 character plaintext results in 3 chunks of 3 characters") { pending CryptoSquare.ciphertext("This is fun!") should be("tsf hiu isn") } test( "8 character plaintext results in 3 chunks, the last one with a trailing space") { pending CryptoSquare.ciphertext("Chill out.") should be("clu hlt io ") } test( "54 character plaintext results in 7 chunks, the last two with trailing spaces") { pending CryptoSquare.ciphertext( "If man was meant to stay on the ground, god would have given us roots.") should be( "imtgdvs fearwer mayoogo anouuio ntnnlvt wttddes aohghn sseoau ") } }
Version data entries
72 entries across 72 versions & 1 rubygems