@@ -853,7 +853,7 @@ void testShaHex() throws IOException {
853853 void testShake128_256 (final String binaryInputText , final int inputBitSize , final String hexOutputText ) throws Exception {
854854 final String cleanBinary = clean (binaryInputText );
855855 final String cleanBinaryInput = StringUtils .reverse (cleanBinary );
856- final byte [] bytesInput = inputBitSize > 0 ? Binary .toByteArray (cleanBinaryInput ) : ArrayUtils . EMPTY_BYTE_ARRAY ;
856+ final byte [] bytesInput = Binary .toByteArray (cleanBinaryInput );
857857 // sanity check on the test fixture
858858 assertEquals (inputBitSize , bytesInput .length * Byte .SIZE );
859859 final String resultString = clean (hexOutputText ).substring (0 , SHAKE128_256_BYTE_LEN * 2 );
@@ -892,7 +892,7 @@ void testShake128_256_String() throws Exception {
892892 void testShake256_512 (final String binaryInputText , final int inputBitSize , final String hexOutputText ) throws Exception {
893893 final String cleanBinary = clean (binaryInputText );
894894 final String cleanBinaryInput = StringUtils .reverse (cleanBinary );
895- final byte [] bytesInput = inputBitSize > 0 ? Binary .toByteArray (cleanBinaryInput ) : ArrayUtils . EMPTY_BYTE_ARRAY ;
895+ final byte [] bytesInput = Binary .toByteArray (cleanBinaryInput );
896896 // sanity check on the test fixture
897897 assertEquals (inputBitSize , bytesInput .length * Byte .SIZE );
898898 final String resultString = clean (hexOutputText ).substring (0 , SHAKE128_512_BYTE_LEN * 2 );
0 commit comments