- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for testConstant (0.11 sec)
-
src/encoding/binary/varint_test.go
import ( "bytes" "io" "math" "testing" ) func testConstant(t *testing.T, w uint, max int) { buf := make([]byte, MaxVarintLen64) n := PutUvarint(buf, 1<<w-1) if n != max { t.Errorf("MaxVarintLen%d = %d; want %d", w, max, n) } } func TestConstants(t *testing.T) { testConstant(t, 16, MaxVarintLen16) testConstant(t, 32, MaxVarintLen32) testConstant(t, 64, MaxVarintLen64) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 16 23:09:19 UTC 2023 - 5.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/FunctionsTest.java
} @J2ktIncompatible @GwtIncompatible // SerializableTester public void testForPredicateSerializable() { checkCanReserialize(Functions.forPredicate(Predicates.equalTo(5))); } public void testConstant() { Function<@Nullable Object, Object> f = Functions.<Object>constant("correct"); assertEquals("correct", f.apply(new Object())); assertEquals("correct", f.apply(null));
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri Feb 09 15:49:48 UTC 2024 - 16K bytes - Viewed (0) -
pkg/config/analysis/analyzers/util/find_errorline_utils_test.go
test2, err2 := ErrorLine(r, "{.metadata.fake}") g.Expect(test1).To(Equal(1)) g.Expect(err1).To(Equal(true)) g.Expect(test2).To(Equal(0)) g.Expect(err2).To(Equal(false)) } func TestConstants(t *testing.T) { g := NewWithT(t) constantsPath := []string{ fmt.Sprintf(DestinationHost, "test", 0, 0), fmt.Sprintf(MirrorHost, 0), fmt.Sprintf(VSGateway, 0),
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Feb 02 17:36:47 UTC 2024 - 3.5K bytes - Viewed (0) -
src/unicode/utf16/utf16_test.go
package utf16_test import ( "internal/testenv" "reflect" "testing" "unicode" . "unicode/utf16" ) // Validate the constants redefined from unicode. func TestConstants(t *testing.T) { if MaxRune != unicode.MaxRune { t.Errorf("utf16.maxRune is wrong: %x should be %x", MaxRune, unicode.MaxRune) } if ReplacementChar != unicode.ReplacementChar {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 07 19:08:48 UTC 2024 - 6.5K bytes - Viewed (0) -
src/unicode/utf8/utf8_test.go
panic("utf8.MaxRune is wrong") } if RuneError != unicode.ReplacementChar { panic("utf8.RuneError is wrong") } } // Validate the constants redefined from unicode. func TestConstants(t *testing.T) { if MaxRune != unicode.MaxRune { t.Errorf("utf8.MaxRune is wrong: %x should be %x", MaxRune, unicode.MaxRune) } if RuneError != unicode.ReplacementChar {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 07 06:17:15 UTC 2022 - 16.2K bytes - Viewed (0)