Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for bcd (0.25 sec)

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

      }
    
      public void testLimitFixedLength() {
        String simple = "abcd";
        Iterable<String> letters = Splitter.fixedLength(1).limit(2).split(simple);
        assertThat(letters).containsExactly("a", "bcd").inOrder();
      }
    
      public void testLimit1Separator() {
        String simple = "a,b,c,d";
        Iterable<String> items = COMMA_SPLITTER.limit(1).split(simple);
        assertThat(items).containsExactly("a,b,c,d").inOrder();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 29.8K bytes
    - Viewed (0)
  2. src/bytes/bytes_test.go

    	s   string
    	sep string
    	n   int
    	a   []string
    }
    
    var splittests = []SplitTest{
    	{"", "", -1, []string{}},
    	{abcd, "a", 0, nil},
    	{abcd, "", 2, []string{"a", "bcd"}},
    	{abcd, "a", -1, []string{"", "bcd"}},
    	{abcd, "z", -1, []string{"abcd"}},
    	{abcd, "", -1, []string{"a", "b", "c", "d"}},
    	{commas, ",", -1, []string{"1", "2", "3", "4"}},
    	{dots, "...", -1, []string{"1", ".2", ".3", ".4"}},
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/base/SplitterTest.java

      }
    
      public void testLimitFixedLength() {
        String simple = "abcd";
        Iterable<String> letters = Splitter.fixedLength(1).limit(2).split(simple);
        assertThat(letters).containsExactly("a", "bcd").inOrder();
      }
    
      public void testLimit1Separator() {
        String simple = "a,b,c,d";
        Iterable<String> items = COMMA_SPLITTER.limit(1).split(simple);
        assertThat(items).containsExactly("a,b,c,d").inOrder();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 29.5K bytes
    - Viewed (0)
Back to top