diff --git a/test/Arrays.java b/test/Arrays.java index b66c3177ac..2dd2bcfc30 100644 --- a/test/Arrays.java +++ b/test/Arrays.java @@ -31,6 +31,11 @@ public class Arrays { expect(array[0].length == 1); } + { Object[][] array = new Object[2][3]; + expect(array.length == 2); + expect(array[0].length == 3); + } + { int j = 0; byte[] decodeTable = new byte[256]; for (int i = 'A'; i <= 'Z'; ++i) decodeTable[i] = (byte) j++; diff --git a/test/Longs.java b/test/Longs.java index c24ae1f340..59da607517 100644 --- a/test/Longs.java +++ b/test/Longs.java @@ -30,6 +30,7 @@ public class Longs { } expect(roundUp(156, 2) == 156); + expect(((int) roundUp(156, 2)) == 156); expect(Long.parseLong("25214903884") == 25214903884L);