- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for testFromBytes (0.17 sec)
-
android/guava-tests/test/com/google/common/hash/HashCodeTest.java
if (expected.bytes.length == 8) { HashCode fromLong = HashCode.fromLong(expected.asLong); assertExpectedHashCode(expected, fromLong); } } } public void testFromBytes() { for (ExpectedHashCode expected : expectedHashCodes) { HashCode fromBytes = HashCode.fromBytes(expected.bytes); assertExpectedHashCode(expected, fromBytes); } }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 13.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/CharsTest.java
try { Chars.fromByteArray(new byte[Chars.BYTES - 1]); fail(); } catch (IllegalArgumentException expected) { } } @GwtIncompatible // Chars.fromBytes public void testFromBytes() { assertThat(Chars.fromBytes((byte) 0x23, (byte) 0x45)).isEqualTo('\u2345'); assertThat(Chars.fromBytes((byte) 0xFE, (byte) 0xDC)).isEqualTo('\uFEDC'); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Feb 20 17:00:05 UTC 2024 - 24.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/ShortsTest.java
try { Shorts.fromByteArray(new byte[] {0x01}); fail(); } catch (IllegalArgumentException expected) { } } @GwtIncompatible // Shorts.fromBytes public void testFromBytes() { assertThat(Shorts.fromBytes((byte) 0x23, (byte) 0x45)).isEqualTo((short) 0x2345); assertThat(Shorts.fromBytes((byte) 0xFE, (byte) 0xDC)).isEqualTo((short) 0xFEDC); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Feb 29 15:43:06 UTC 2024 - 26.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/ShortsTest.java
try { Shorts.fromByteArray(new byte[] {0x01}); fail(); } catch (IllegalArgumentException expected) { } } @GwtIncompatible // Shorts.fromBytes public void testFromBytes() { assertThat(Shorts.fromBytes((byte) 0x23, (byte) 0x45)).isEqualTo((short) 0x2345); assertThat(Shorts.fromBytes((byte) 0xFE, (byte) 0xDC)).isEqualTo((short) 0xFEDC); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Feb 29 15:43:06 UTC 2024 - 26.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/IntsTest.java
public void testFromByteArrayFails() { try { Ints.fromByteArray(new byte[Ints.BYTES - 1]); fail(); } catch (IllegalArgumentException expected) { } } public void testFromBytes() { assertThat(Ints.fromBytes((byte) 0x12, (byte) 0x13, (byte) 0x14, (byte) 0x15)) .isEqualTo(0x12131415); assertThat(Ints.fromBytes((byte) 0xFF, (byte) 0xEE, (byte) 0xDD, (byte) 0xCC))
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Feb 06 16:10:08 UTC 2024 - 28.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/LongsTest.java
public void testFromByteArrayFails() { try { Longs.fromByteArray(new byte[Longs.BYTES - 1]); fail(); } catch (IllegalArgumentException expected) { } } public void testFromBytes() { assertThat( Longs.fromBytes( (byte) 0x12, (byte) 0x13, (byte) 0x14, (byte) 0x15, (byte) 0x16,
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Feb 20 17:00:05 UTC 2024 - 30K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/IntsTest.java
public void testFromByteArrayFails() { try { Ints.fromByteArray(new byte[Ints.BYTES - 1]); fail(); } catch (IllegalArgumentException expected) { } } public void testFromBytes() { assertThat(Ints.fromBytes((byte) 0x12, (byte) 0x13, (byte) 0x14, (byte) 0x15)) .isEqualTo(0x12131415); assertThat(Ints.fromBytes((byte) 0xFF, (byte) 0xEE, (byte) 0xDD, (byte) 0xCC))
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Feb 06 16:10:08 UTC 2024 - 28.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/LongsTest.java
public void testFromByteArrayFails() { try { Longs.fromByteArray(new byte[Longs.BYTES - 1]); fail(); } catch (IllegalArgumentException expected) { } } public void testFromBytes() { assertThat( Longs.fromBytes( (byte) 0x12, (byte) 0x13, (byte) 0x14, (byte) 0x15, (byte) 0x16,
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Feb 20 17:00:05 UTC 2024 - 30K bytes - Viewed (0)