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