summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2014-11-23 18:56:24 -0800
committeriximeow <me@iximeow.net>2014-11-23 18:56:24 -0800
commitd32466d20399489ae5cf254588c87e009a9c29f7 (patch)
tree71bbf790220fd3daf574d3867dfd8c816e839fd4 /test
parentaa390776b26d794ab37aa13833fa7043aad16504 (diff)
Add challenge 4
Diffstat (limited to 'test')
-rw-r--r--test/Set1Spec.scala7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Set1Spec.scala b/test/Set1Spec.scala
index a7a8ef6..628889c 100644
--- a/test/Set1Spec.scala
+++ b/test/Set1Spec.scala
@@ -39,6 +39,13 @@ class Set1Spec extends IxeeSpec {
)
) mustBe 88.toByte
}
+
+ "Challenge 4: detecting single-byte xor" - {
+ "Decrypts and reports the line of the single-byte xor" in {
+ Challenge4.run("./data/4.txt") mustBe
+ (("Now that the party is jumping\n", 170))
+ }
+ }
}
}