Skip to content

Commit

Permalink
Merge pull request #597 from ricemery/atbash-cipher
Browse files Browse the repository at this point in the history
Update atbash-cipher exericse to match latest test data. Refs #488
  • Loading branch information
ErikSchierboom authored Jan 1, 2019
2 parents 308d2fd + cdad7e7 commit 8d7a29d
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion exercises/atbash-cipher/src/test/scala/AtbashCipherTest.scala
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import org.scalatest.{Matchers, FunSuite}

/** @version 1.1.0 */
/** @version 1.2.0 */
class AtbashCipherTest extends FunSuite with Matchers {

test("encode yes") {
Expand Down Expand Up @@ -65,4 +65,15 @@ class AtbashCipherTest extends FunSuite with Matchers {
AtbashCipher.decode("gsvjf rxpyi ldmul cqfnk hlevi gsvoz abwlt") should be(
"thequickbrownfoxjumpsoverthelazydog")
}

test("decode with too many spaces") {
pending
AtbashCipher.decode("vc vix r hn") should be("exercism")
}

test("decode with no spaces") {
pending
AtbashCipher.decode("zmlyhgzxovrhlugvmzhgvkkrmthglmv") should be(
"anobstacleisoftenasteppingstone")
}
}

0 comments on commit 8d7a29d

Please sign in to comment.