Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 44 for bcde (0.15 sec)

  1. guava-tests/test/com/google/common/io/CharSourceTest.java

      }
    
      public void testConcat() throws IOException {
        CharSource c1 = CharSource.wrap("abc");
        CharSource c2 = CharSource.wrap("");
        CharSource c3 = CharSource.wrap("de");
    
        String expected = "abcde";
    
        assertEquals(expected, CharSource.concat(ImmutableList.of(c1, c2, c3)).read());
        assertEquals(expected, CharSource.concat(c1, c2, c3).read());
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 13K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt

        peer.acceptFrame() // PING
        peer.sendFrame().ping(true, Http2Connection.AWAIT_PING, 0)
        peer.acceptFrame() // HEADERS STREAM 3
        peer.sendFrame().windowUpdate(3, 5)
        peer.acceptFrame() // DATA STREAM 3 "abcde"
        peer.sendFrame().windowUpdate(3, 5)
        peer.acceptFrame() // DATA STREAM 3 "fghi"
        peer.play()
    
        // Play it back.
        val connection = connect(peer)
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 75.4K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/CacheTest.kt

        transferKind.setBody(mockResponse, "ABCDE\nFGHIJKLMNOPQRSTUVWXYZ", 16)
        server.enqueue(truncateViolently(mockResponse, 16).build())
        server.enqueue(
          MockResponse.Builder()
            .body("Request #2")
            .build(),
        )
        val bodySource = get(server.url("/")).body.source()
        assertThat(bodySource.readUtf8Line()).isEqualTo("ABCDE")
        bodySource.use {
          assertFailsWith<IOException> {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 108.6K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/io/CharStreamsTest.java

        assertEquals(2, CharStreams.readLines(r, conditional).intValue());
        assertEquals("ab", sb.toString());
      }
    
      public void testSkipFully_EOF() throws IOException {
        Reader reader = new StringReader("abcde");
        assertThrows(EOFException.class, () -> CharStreams.skipFully(reader, 6));
      }
    
      public void testSkipFully() throws IOException {
        String testString = "abcdef";
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 11.2K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/io/CharStreamsTest.java

        assertEquals(2, CharStreams.readLines(r, conditional).intValue());
        assertEquals("ab", sb.toString());
      }
    
      public void testSkipFully_EOF() throws IOException {
        Reader reader = new StringReader("abcde");
        assertThrows(EOFException.class, () -> CharStreams.skipFully(reader, 6));
      }
    
      public void testSkipFully() throws IOException {
        String testString = "abcdef";
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 11.2K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/base/Splitter.java

        return onPatternInternal(Platform.compilePattern(separatorPattern));
      }
    
      /**
       * Returns a splitter that divides strings into pieces of the given length. For example, {@code
       * Splitter.fixedLength(2).split("abcde")} returns an iterable containing {@code ["ab", "cd",
       * "e"]}. The last piece can be smaller than {@code length} but will never be empty.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 23.7K bytes
    - Viewed (0)
  7. guava/src/com/google/common/base/Splitter.java

        return onPatternInternal(Platform.compilePattern(separatorPattern));
      }
    
      /**
       * Returns a splitter that divides strings into pieces of the given length. For example, {@code
       * Splitter.fixedLength(2).split("abcde")} returns an iterable containing {@code ["ab", "cd",
       * "e"]}. The last piece can be smaller than {@code length} but will never be empty.
       *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 24.4K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/primitives/Ints.java

        //     the smaller of these blocks with the far end of the other one. That leaves us with a
        //     smaller version of the same problem.
        //     Say we are rotating abcdefgh by 5. We start with abcde|fgh. The smaller block is [fgh]:
        //     [abc]de|[fgh] -> [fgh]de|[abc]. Now [fgh] is in the right place, but we need to swap [de]
        //     with [abc]: fgh[de]|a[bc] -> fgh[bc]|a[de]. Now we need to swap [a] with [bc]:
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 29.7K bytes
    - Viewed (0)
  9. 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 23 11:13:09 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  10. src/bufio/bufio_test.go

    	r.UnreadRune()
    	r.ReadRune() // Used to panic here
    }
    
    var testOutput = []byte("0123456789abcdefghijklmnopqrstuvwxy")
    var testInput = []byte("012\n345\n678\n9ab\ncde\nfgh\nijk\nlmn\nopq\nrst\nuvw\nxy")
    var testInputrn = []byte("012\r\n345\r\n678\r\n9ab\r\ncde\r\nfgh\r\nijk\r\nlmn\r\nopq\r\nrst\r\nuvw\r\nxy\r\n\n\r\n")
    
    // TestReader wraps a []byte and returns reads of a specific length.
    type testReader struct {
    	data   []byte
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Feb 10 18:56:01 GMT 2023
    - 51.5K bytes
    - Viewed (0)
Back to top