From 0af5a2e4ade0b032e1ec6d25c51de2ff95dd2799 Mon Sep 17 00:00:00 2001 From: iximeow Date: Thu, 27 Nov 2014 02:06:03 -0800 Subject: Rough cut of challenge 10 --- test/Set2Spec.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') 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 { -- cgit v1.1