- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for testOverflow (0.17 sec)
-
src/encoding/binary/varint_test.go
} } func TestOverflow(t *testing.T) { testOverflow(t, []byte{0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x2}, 0, -10, errOverflow) testOverflow(t, []byte{0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x1, 0, 0}, 0, -11, errOverflow)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 16 23:09:19 UTC 2023 - 5.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/cache/LongAdderTest.java
* version, which checks package-private methods that we don't want to have to annotate as {@code * Nullable} because we don't want diffs from jsr166e. */ public void testNulls() {} public void testOverflows() { LongAdder longAdder = new LongAdder(); longAdder.add(Long.MAX_VALUE); assertThat(longAdder.sum()).isEqualTo(Long.MAX_VALUE); longAdder.add(1); // silently overflows; is this a bug?
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Jul 09 04:11:29 UTC 2019 - 1.4K bytes - Viewed (0)