- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for TestRepeat (0.15 sec)
-
src/hash/maphash/maphash_test.go
h := new(Hash) h.WriteString("foo") m[h.Sum64()>>32] = struct{}{} } if len(m) < N/2 { t.Errorf("from %d seeds, wanted at least %d different hashes; got %d", N, N/2, len(m)) } } func TestRepeat(t *testing.T) { h1 := new(Hash) h1.WriteString("testing") sum1 := h1.Sum64() h1.Reset() h1.WriteString("testing") sum2 := h1.Sum64() if sum1 != sum2 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 14 00:03:57 UTC 2023 - 5.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/StringsTest.java
public void testPadEnd_null() { try { Strings.padEnd(null, 5, '0'); fail(); } catch (NullPointerException expected) { } } public void testRepeat() { String input = "20"; assertEquals("", Strings.repeat(input, 0)); assertEquals("20", Strings.repeat(input, 1)); assertEquals("2020", Strings.repeat(input, 2));
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri Feb 09 15:49:48 UTC 2024 - 10.3K bytes - Viewed (0) -
src/slices/slices_test.go
_ = Concat(ss...) }() if didPanic := r != nil; didPanic != tc.shouldPanic { t.Errorf("slices.Concat(lens(%v)) got panic == %v", tc.lengths, didPanic) } } } func TestRepeat(t *testing.T) { // normal cases for _, tc := range []struct { x []int count int want []int }{ {x: []int(nil), count: 0, want: []int{}}, {x: []int(nil), count: 1, want: []int{}},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 13:32:06 UTC 2024 - 33.2K bytes - Viewed (0) -
src/strings/strings_test.go
{" ", longSpaces, len(longSpaces)}, // Tests for results over the chunkLimit {string(rune(0)), string(make([]byte, 1<<16)), 1 << 16}, {longString, longString + longString, 2}, } func TestRepeat(t *testing.T) { for _, tt := range RepeatTests { a := Repeat(tt.in, tt.count) if !equal("Repeat(s)", a, tt.out, t) { t.Errorf("Repeat(%v, %d) = %v; want %v", tt.in, tt.count, a, tt.out) continue
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 12:58:37 UTC 2024 - 53K bytes - Viewed (0) -
src/bytes/bytes_test.go
{"abc ", "abc abc abc ", 3}, // Tests for results over the chunkLimit {string(rune(0)), string(make([]byte, 1<<16)), 1 << 16}, {longString, longString + longString, 2}, } func TestRepeat(t *testing.T) { for _, tt := range RepeatTests { tin := []byte(tt.in) tout := []byte(tt.out) a := Repeat(tin, tt.count) if !Equal(a, tout) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 12:58:37 UTC 2024 - 56.5K bytes - Viewed (0)