summaryrefslogtreecommitdiff
path: root/test/Set2Spec.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/Set2Spec.scala')
-rw-r--r--test/Set2Spec.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Set2Spec.scala b/test/Set2Spec.scala
index df25f57..7884b4e 100644
--- a/test/Set2Spec.scala
+++ b/test/Set2Spec.scala
@@ -23,12 +23,12 @@ class Set2Spec extends IxeeSpec {
def challenge9spec(expected: Byte) = {
val truncated = text.dropRight(expected)
val padString =
- CryptoUtils.pkcs7pad(truncated, 256).takeRight(expected)
+ CryptoUtils.pkcs7pad(truncated.toByteArray, 256).takeRight(expected)
val expectedPad =
s"${expected.toChar}" * expected
- padString mustBe expectedPad
+ padString.asAscii mustBe expectedPad
}
for {