Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for abbbbc (0.28 sec)

  1. src/test/java/org/codelibs/core/lang/StringUtilTest.java

         */
        @Test
        public void testSubstringFromLast() throws Exception {
            assertEquals("ab", StringUtil.substringFromLast("abc", "c"));
            assertEquals("abcab", StringUtil.substringFromLast("abcabc", "c"));
            assertEquals("abc", StringUtil.substringFromLast("abc", ""));
            assertEquals("abc", StringUtil.substringFromLast("abc", null));
            assertEquals("abc", StringUtil.substringFromLast("abc", "dddd"));
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 12K bytes
    - Viewed (0)
  2. src/text/tabwriter/tabwriter_test.go

    	},
    
    	{
    		"12b",
    		2, 0, 0, ' ', 0,
    		"a\tb\tc\n" +
    			"aa\tbbb\tcccc\n" +
    			"aaa\tbbbb\n",
    
    		"a  b  c\n" +
    			"aa bbbcccc\n" +
    			"aaabbbb\n",
    	},
    
    	{
    		"12c",
    		8, 0, 1, '_', 0,
    		"a\tb\tc\n" +
    			"aa\tbbb\tcccc\n" +
    			"aaa\tbbbb\n",
    
    		"a_______b_______c\n" +
    			"aa______bbb_____cccc\n" +
    			"aaa_____bbbb\n",
    	},
    
    	{
    		"13a",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 16:46:34 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  3. cmd/utils_test.go

    		}
    	}
    }
    
    // Test queries()
    func TestQueries(t *testing.T) {
    	testCases := []struct {
    		keys      []string
    		keyvalues []string
    	}{
    		{
    			[]string{"aaaa", "bbbb"},
    			[]string{"aaaa", "{aaaa:.*}", "bbbb", "{bbbb:.*}"},
    		},
    	}
    
    	for i, test := range testCases {
    		keyvalues := restQueries(test.keys...)
    		for j := range keyvalues {
    			if keyvalues[j] != test.keyvalues[j] {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Feb 23 21:28:14 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  4. src/compress/flate/deflate_test.go

    				if err != nil {
    					t.Errorf("i=%d, firstN=%d, flush=%t: NewWriter: %v", i, firstN, flush, err)
    					continue
    				}
    				for _, n := range tc {
    					want = append(want, abcabc[:n]...)
    					if _, err := w.Write(abcabc[:n]); err != nil {
    						t.Errorf("i=%d, firstN=%d, flush=%t: Write: %v", i, firstN, flush, err)
    						continue outer
    					}
    					if !flush {
    						continue
    					}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 25.6K bytes
    - Viewed (0)
  5. src/strings/replace_test.go

    		testCase{htmlEscaper, "&&&", "&&&"},
    		testCase{htmlEscaper, "", ""},
    
    		testCase{repeat, "brad", "bbrrrrrrrrrrrrrrrrrradddd"},
    		testCase{repeat, "abba", "abbbba"},
    		testCase{repeat, "", ""},
    
    		testCase{NewReplacer("a", "11", "a", "22"), "brad", "br11d"},
    	)
    
    	// The remaining test cases have variable length old strings.
    
    	testCases = append(testCases,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 22:53:05 UTC 2017
    - 14.1K bytes
    - Viewed (0)
  6. src/cmd/internal/obj/x86/aenum.go

    	AROUNDPD
    	AROUNDPS
    	AROUNDSD
    	AROUNDSS
    	ARSM
    	ARSQRTPS
    	ARSQRTSS
    	ASAHF
    	ASALB
    	ASALL
    	ASALQ
    	ASALW
    	ASARB
    	ASARL
    	ASARQ
    	ASARW
    	ASARXL
    	ASARXQ
    	ASBBB
    	ASBBL
    	ASBBQ
    	ASBBW
    	ASCASB
    	ASCASL
    	ASCASQ
    	ASCASW
    	ASETCC
    	ASETCS
    	ASETEQ
    	ASETGE
    	ASETGT
    	ASETHI
    	ASETLE
    	ASETLS
    	ASETLT
    	ASETMI
    	ASETNE
    	ASETOC
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 11 18:32:50 UTC 2023
    - 16.3K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/pkg/controller/openapi/v2/conversion_test.go

    		{"empty", []string{}, "foo", []string{}, false},
    		{"foo", []string{"foo"}, "foo", nil, true},
    		{"aaa", []string{"a", "a", "a"}, "a", nil, true},
    		{"abc", []string{"a", "b", "c"}, "c", []string{"a", "b"}, true},
    		{"abbbcc", []string{"a", "b", "b", "b", "c", "c"}, "b", []string{"a", "c", "c"}, true},
    	} {
    		t.Run(tt.name, func(t *testing.T) {
    			got, gotChanged := filterOut(tt.input, tt.x)
    			if !reflect.DeepEqual(tt.expected, got) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 02 14:34:26 UTC 2023
    - 23.2K bytes
    - Viewed (0)
  8. cmd/utils.go

    	}
    
    	return logger.SetReqInfo(r.Context(), reqInfo)
    }
    
    // Used for registering with rest handlers (have a look at registerStorageRESTHandlers for usage example)
    // If it is passed ["aaaa", "bbbb"], it returns ["aaaa", "{aaaa:.*}", "bbbb", "{bbbb:.*}"]
    func restQueries(keys ...string) []string {
    	var accumulator []string
    	for _, key := range keys {
    		accumulator = append(accumulator, key, "{"+key+":.*}")
    	}
    	return accumulator
    }
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Jun 05 22:00:34 UTC 2024
    - 31.9K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/MapsCollectionTest.java

                        return new SampleElements<>(
                            mapEntry("a", 1),
                            mapEntry("aa", 2),
                            mapEntry("aba", 3),
                            mapEntry("bbbb", 4),
                            mapEntry("ccccc", 5));
                      }
    
                      @Override
                      public SortedMap<String, Integer> create(Object... elements) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 20:09:59 UTC 2024
    - 32.2K bytes
    - Viewed (0)
  10. src/regexp/all_test.go

    		}
    	}
    }
    
    func BenchmarkMatchClass_InRange(b *testing.B) {
    	b.StopTimer()
    	// 'b' is between 'a' and 'c', so the charclass
    	// range checking is no help here.
    	x := strings.Repeat("bbbb", 20) + "c"
    	re := MustCompile("[ac]")
    	b.StartTimer()
    	for i := 0; i < b.N; i++ {
    		if !re.MatchString(x) {
    			b.Fatalf("no match!")
    		}
    	}
    }
    
    func BenchmarkReplaceAll(b *testing.B) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:36:03 UTC 2024
    - 25.8K bytes
    - Viewed (0)
Back to top