From 22fcf324e4d519b53a889a741de1f62cf1a4b887 Mon Sep 17 00:00:00 2001 From: Sebastian Hugentobler Date: Tue, 22 Mar 2022 21:10:14 +0100 Subject: [PATCH] use cipher text from constant in test --- src/test/java/ch/fhnw/kry/DecryptTest.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/test/java/ch/fhnw/kry/DecryptTest.java b/src/test/java/ch/fhnw/kry/DecryptTest.java index b858daf..e5e5d87 100644 --- a/src/test/java/ch/fhnw/kry/DecryptTest.java +++ b/src/test/java/ch/fhnw/kry/DecryptTest.java @@ -12,9 +12,7 @@ class DecryptTest { void strToArray() { var decrypt = new Decrypt(); - String input = - "00000100110100100000101110111000000000101000111110001110011111110110000001010001010000111010000000010011011001110010101110110000"; - int[] data = decrypt.strToArray(input); + int[] data = decrypt.strToArray(CIPHER); assertEquals(8, data.length); assertEquals(0x04D2, data[0]);