- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for testToByteArray (0.1 sec)
-
android/guava-tests/test/com/google/common/primitives/IntsTest.java
Arrays.fill(arrays, sharedArray); try { Ints.concat(arrays); fail(); } catch (IllegalArgumentException expected) { } } public void testToByteArray() { assertThat(Ints.toByteArray(0x12131415)).isEqualTo(new byte[] {0x12, 0x13, 0x14, 0x15}); assertThat(Ints.toByteArray(0xFFEEDDCC)) .isEqualTo(new byte[] {(byte) 0xFF, (byte) 0xEE, (byte) 0xDD, (byte) 0xCC});
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 02:56:12 UTC 2024 - 29.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/LongsTest.java
assertWithMessage( "Expected: " + Arrays.toString(expected) + ", but got: " + Arrays.toString(actual)) .that(Arrays.equals(expected, actual)) .isTrue(); } public void testToByteArray() { assertByteArrayEquals( new byte[] {0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19}, Longs.toByteArray(0x1213141516171819L)); assertByteArrayEquals( new byte[] {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 02:56:12 UTC 2024 - 29.8K bytes - Viewed (0)