use cipher text from constant in test

This commit is contained in:
Sebastian Hugentobler 2022-03-22 21:10:14 +01:00
parent e1c2d7df7d
commit 22fcf324e4
Signed by: shu
GPG Key ID: BB32CF3CA052C2F0

View File

@ -12,9 +12,7 @@ class DecryptTest {
void strToArray() { void strToArray() {
var decrypt = new Decrypt(); var decrypt = new Decrypt();
String input = int[] data = decrypt.strToArray(CIPHER);
"00000100110100100000101110111000000000101000111110001110011111110110000001010001010000111010000000010011011001110010101110110000";
int[] data = decrypt.strToArray(input);
assertEquals(8, data.length); assertEquals(8, data.length);
assertEquals(0x04D2, data[0]); assertEquals(0x04D2, data[0]);