We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc408ef commit 9e16c08Copy full SHA for 9e16c08
src/test/java/de/rub/nds/modifiablevariable/util/ArrayConverterTest.java
@@ -261,4 +261,15 @@ public void testBigIntegerReconversion() {
261
assertEquals(b, c);
262
}
263
264
+
265
+ @Test
266
+ public void testIntegerReconversion() {
267
+ Random r = new Random(0);
268
+ for (int i = 0; i < 10000; i++) {
269
+ Integer b = r.nextInt();
270
+ byte[] intBytes = ArrayConverter.intToBytes(b, 4);
271
+ Integer c = ArrayConverter.bytesToInt(intBytes);
272
+ assertEquals(b, c);
273
+ }
274
275
0 commit comments