Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for testRepeat (0.08 seconds)

  1. 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)
  2. 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)
  3. 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)
Back to Top