- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for testRepeat (0.08 seconds)
-
android/guava-tests/test/com/google/common/base/StringsTest.java
public void testPadEnd_null() { assertThrows(NullPointerException.class, () -> Strings.padEnd(null, 5, '0')); } @SuppressWarnings("InlineMeInliner") // test of method that doesn't just delegate public void testRepeat() { String input = "20"; assertThat(Strings.repeat(input, 0)).isEqualTo(""); assertThat(Strings.repeat(input, 1)).isEqualTo("20"); assertThat(Strings.repeat(input, 2)).isEqualTo("2020");
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 15:59:55 GMT 2026 - 11.4K bytes - Click Count (0) -
guava-tests/test/com/google/common/base/StringsTest.java
public void testPadEnd_null() { assertThrows(NullPointerException.class, () -> Strings.padEnd(null, 5, '0')); } @SuppressWarnings("InlineMeInliner") // test of method that doesn't just delegate public void testRepeat() { String input = "20"; assertThat(Strings.repeat(input, 0)).isEqualTo(""); assertThat(Strings.repeat(input, 1)).isEqualTo("20"); assertThat(Strings.repeat(input, 2)).isEqualTo("2020");
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 15:59:55 GMT 2026 - 11.4K bytes - Click Count (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) {Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Wed Mar 11 03:07:05 GMT 2026 - 62.9K bytes - Click Count (0)