- Sort Score
- Result 10 results
- Languages All
Results 11 - 12 of 12 for test_long (0.14 sec)
-
guava-tests/test/com/google/common/hash/AbstractStreamingHasherTest.java
Sink sink = new Sink(4); sink.putInt(0x04030201); HashCode unused = sink.hash(); sink.assertInvariants(4); sink.assertBytes(new byte[] {1, 2, 3, 4}); } public void testLong() { Sink sink = new Sink(8); sink.putLong(0x0807060504030201L); HashCode unused = sink.hash(); sink.assertInvariants(8); sink.assertBytes(new byte[] {1, 2, 3, 4, 5, 6, 7, 8}); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 8.5K bytes - Viewed (0) -
src/bytes/bytes_test.go
buf := make([]byte, 1<<16) for i := 0; i < len(buf); i += skip { buf[i] = 1 } for i := 0; i < b.N; i++ { Index(buf, key) } }) } } func TestClone(t *testing.T) { var cloneTests = [][]byte{ []byte(nil), []byte{}, Clone([]byte{}), []byte(strings.Repeat("a", 42))[:0], []byte(strings.Repeat("a", 42))[:0:0], []byte("short"),
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Mon Aug 19 19:09:04 UTC 2024 - 61.2K bytes - Viewed (0)