- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for TestRepeat (0.17 sec)
-
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)