Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 57 for Repeat (0.04 sec)

  1. android/guava-tests/test/com/google/common/base/StringsTest.java

        String input = "20";
        assertEquals("", Strings.repeat(input, 0));
        assertEquals("20", Strings.repeat(input, 1));
        assertEquals("2020", Strings.repeat(input, 2));
        assertEquals("202020", Strings.repeat(input, 3));
    
        assertEquals("", Strings.repeat("", 4));
    
        for (int i = 0; i < 100; ++i) {
          assertEquals(2 * i, Strings.repeat(input, i).length());
        }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 27 17:53:41 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/helper/PopularWordHelperTest.java

            String seed = "very_long_seed_" + "x".repeat(100);
            String[] tags = { "long_tag_" + "y".repeat(50), "another_long_tag_" + "z".repeat(50) };
            String[] roles = { "long_role_" + "a".repeat(50) };
            String[] fields = { "long_field_" + "b".repeat(50) };
            String[] excludes = { "long_exclude_" + "c".repeat(50) };
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 11K bytes
    - Viewed (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/internal/http/SocketFailureTest.kt

        // request headers.
        // 431 "Request Header Fields Too Large"
        val largeHeaders =
          Headers
            .Builder()
            .apply {
              repeat(32) {
                add("name-$it", "value-$it-" + "0".repeat(1024))
              }
            }.build()
        val call2 =
          client.newCall(
            Request
              .Builder()
              .url(server.url("/"))
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue Jul 29 21:11:09 UTC 2025
    - 3K bytes
    - Viewed (0)
  4. src/archive/tar/strconv_test.go

    		if got != v.want {
    			t.Errorf("formatPAXTime(%ds, %dns): got %q, want %q",
    				v.sec, v.nsec, got, v.want)
    		}
    	}
    }
    
    func TestParsePAXRecord(t *testing.T) {
    	medName := strings.Repeat("CD", 50)
    	longName := strings.Repeat("AB", 100)
    
    	vectors := []struct {
    		in      string
    		wantRes string
    		wantKey string
    		wantVal string
    		ok      bool
    	}{
    		{"6 k=v\n\n", "\n", "k", "v", true},
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Mon Sep 08 17:08:20 UTC 2025
    - 15K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/util/StringUtilTest.java

            }
        }
    
        @Test
        @DisplayName("Should handle long strings as elements")
        void testJoinWithLongStrings() {
            String longString1 = "a".repeat(1000);
            String longString2 = "b".repeat(1000);
            String result = StringUtil.join(",", longString1, longString2);
            assertEquals(2001, result.length()); // 1000 + 1 + 1000
            assertTrue(result.startsWith("aaa"));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 9K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/net/InternetDomainNameTest.java

      @SuppressWarnings("InlineMeInliner") // String.repeat unavailable under Java 8
      static final String LOTS_OF_DELTAS = Strings.repeat(DELTA, 62);
    
      @SuppressWarnings("InlineMeInliner") // String.repeat unavailable under Java 8
      private static final String ALMOST_TOO_MANY_LEVELS = Strings.repeat("a.", 127);
    
      @SuppressWarnings("InlineMeInliner") // String.repeat unavailable under Java 8
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  7. src/bytes/bytes_test.go

    		{"a", 'ӆ', -1},
    		{"  ӆ", 'ӆ', 2},
    		{"  a", 'ӆ', -1},
    		{strings.Repeat("ц", 64) + "ӆ", 'ӆ', 128}, // test cutover
    		{strings.Repeat("ц", 64), 'ӆ', -1},
    
    		// 3 bytes
    		{"Ꚁ", 'Ꚁ', 0},
    		{"a", 'Ꚁ', -1},
    		{"  Ꚁ", 'Ꚁ', 2},
    		{"  a", 'Ꚁ', -1},
    		{strings.Repeat("Ꙁ", 64) + "Ꚁ", 'Ꚁ', 192}, // test cutover
    		{strings.Repeat("Ꙁ", 64) + "Ꚁ", '䚀', -1},  // 'Ꚁ' and '䚀' share the same last two bytes
    
    		// 4 bytes
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Mon Jul 28 18:13:58 UTC 2025
    - 62.9K bytes
    - Viewed (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/RealWebSocketTest.kt

    import kotlin.test.assertFailsWith
    import okhttp3.FailingCall
    import okhttp3.Headers
    import okhttp3.Headers.Companion.headersOf
    import okhttp3.Protocol
    import okhttp3.Request
    import okhttp3.Response
    import okhttp3.TestUtil.repeat
    import okhttp3.internal.concurrent.TaskFaker
    import okhttp3.internal.connection.BufferedSocket
    import okhttp3.internal.ws.WebSocketExtensions.Companion.parse
    import okio.BufferedSink
    import okio.BufferedSource
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 18.7K bytes
    - Viewed (0)
  9. src/test/java/jcifs/util/ServerResponseValidatorTest.java

            // Should pass without exception
        }
    
        @Test
        public void testStringTooLong() throws Exception {
            String longString = "a".repeat(300);
            assertThrows(SmbException.class, () -> {
                validator.validateString(longString, 255, "test");
            });
        }
    
        @Test
        public void testStringWithNullBytes() throws Exception {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  10. cmd/encryption-v1_test.go

    		esum = func(oi ObjectInfo) int64 {
    			sum := int64(0)
    			for _, i := range oi.Parts {
    				sum += i.Size
    			}
    			return sum
    		}
    	)
    
    	s1 := []int64{5487701, 5487799, 3}
    	s2 := repeat(5487701, 5)
    	s3 := repeat(maxPartSz, 10000)
    	testMPs := []struct {
    		decSizes []int64
    		oi       ObjectInfo
    	}{
    		{s1, mkMPObj(s1)},
    		{s2, mkMPObj(s2)},
    		{s3, mkMPObj(s3)},
    	}
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 19.9K bytes
    - Viewed (0)
Back to top