Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for xyzabc (0.04 sec)

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

        assertEquals("", Strings.commonSuffix("xyz", "abcde"));
        assertEquals("", Strings.commonSuffix("xyz", "xyzabc"));
        assertEquals("c", Strings.commonSuffix("abc", "ccccc"));
        assertEquals("aa", Strings.commonSuffix("aa", "aaaaa"));
        assertEquals("abc", Strings.commonSuffix(new StringBuilder("xyzabc"), "xxxabc"));
    
        // Identical valid surrogate pairs.
        assertEquals(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/base/StringsTest.java

        assertEquals("", Strings.commonSuffix("xyz", "abcde"));
        assertEquals("", Strings.commonSuffix("xyz", "xyzabc"));
        assertEquals("c", Strings.commonSuffix("abc", "ccccc"));
        assertEquals("aa", Strings.commonSuffix("aa", "aaaaa"));
        assertEquals("abc", Strings.commonSuffix(new StringBuilder("xyzabc"), "xxxabc"));
    
        // Identical valid surrogate pairs.
        assertEquals(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  3. src/archive/tar/reader_test.go

    		tests: []testFnc{
    			testRead{100, "\x00abc\x00\x00", errMissData},
    		},
    	}, {
    		maker: makeSparse{makeReg{"abc", 8}, sparseDatas{{1, 3}, {6, 5}}, 15},
    		tests: []testFnc{
    			testRead{100, "\x00abc\x00\x00", io.ErrUnexpectedEOF},
    		},
    	}, {
    		maker: makeSparse{makeReg{"abcde", 5}, sparseDatas{{1, 3}, {6, 5}}, 15},
    		tests: []testFnc{
    			testRead{100, "\x00abc\x00\x00de", errMissData},
    		},
    	}, {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Oct 03 15:48:09 UTC 2024
    - 46.9K bytes
    - Viewed (0)
  4. src/archive/tar/writer_test.go

    			testRemaining{5, 5},
    			testWrite{"abc", 3, nil},
    			testRemaining{2, 2},
    			testReadFrom{fileOps{"\x00\x00"}, 2, nil},
    			testRemaining{0, 0},
    		},
    	}, {
    		maker: makeReg{5, "\x00\x00abc"},
    		tests: []testFnc{
    			testRemaining{5, 5},
    			testWrite{"\x00\x00", 2, nil},
    			testRemaining{3, 3},
    			testWrite{"abc", 3, nil},
    			testReadFrom{fileOps{"z"}, 0, ErrWriteTooLong},
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Sep 23 14:32:33 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  5. src/bufio/scan_test.go

    		}
    	}
    }
    
    var scanTests = []string{
    	"",
    	"a",
    	"¼",
    	"☹",
    	"\x81",   // UTF-8 error
    	"\uFFFD", // correctly encoded RuneError
    	"abcdefgh",
    	"abc def\n\t\tgh    ",
    	"abc¼☹\x81\uFFFD日本語\x82abc",
    }
    
    func TestScanByte(t *testing.T) {
    	for n, test := range scanTests {
    		buf := strings.NewReader(test)
    		s := NewScanner(buf)
    		s.Split(ScanBytes)
    		var i int
    		for i = 0; s.Scan(); i++ {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Sep 22 16:22:42 UTC 2023
    - 14.3K bytes
    - Viewed (0)
  6. src/bytes/bytes_test.go

    	{"a☺b☻c☹d", "cx", len("a☺b☻")},
    	{"a☺b☻c☹d", "uvw☻xyz", len("a☺b")},
    	{"aRegExp*", ".(|)*+?^$[]", 7},
    	{dots + dots + dots, " ", -1},
    	{"012abcba210", "\xffb", 4},
    	{"012\x80bcb\x80210", "\xffb", 3},
    	{"0123456\xcf\x80abc", "\xcfb\x80", 10},
    }
    
    var lastIndexAnyTests = []BinOpTest{
    	{"", "", -1},
    	{"", "a", -1},
    	{"", "abc", -1},
    	{"a", "", -1},
    	{"a", "a", 0},
    	{"\x80", "\xffb", 0},
    	{"aaa", "a", 2},
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Aug 19 19:09:04 UTC 2024
    - 61.2K bytes
    - Viewed (0)
Back to top