Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for TestConcat (0.6 sec)

  1. src/compress/gzip/gzip_test.go

    	if n2 == n3 {
    		t.Fatal("Flush didn't flush any data")
    	}
    
    	if err := w.Close(); err != nil {
    		t.Fatal(err)
    	}
    
    }
    
    // Multiple gzip files concatenated form a valid gzip file.
    func TestConcat(t *testing.T) {
    	var buf bytes.Buffer
    	w := NewWriter(&buf)
    	w.Write([]byte("hello "))
    	w.Close()
    	w = NewWriter(&buf)
    	w.Write([]byte("world\n"))
    	w.Close()
    
    	r, err := NewReader(&buf)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 17:10:06 UTC 2024
    - 6K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/CharSourceTest.java

        TestCharSource okSource = new TestCharSource(STRING);
        assertThrows(IOException.class, () -> okSource.copyTo(new TestWriter(WRITE_THROWS)));
        assertTrue(okSource.wasStreamClosed());
      }
    
      public void testConcat() throws IOException {
        CharSource c1 = CharSource.wrap("abc");
        CharSource c2 = CharSource.wrap("");
        CharSource c3 = CharSource.wrap("de");
    
        String expected = "abcde";
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 07 15:26:58 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/io/ByteSourceTest.java

        OutputStream out = new TestOutputStream(ByteStreams.nullOutputStream(), WRITE_THROWS);
        assertThrows(IOException.class, () -> okSource.copyTo(out));
        assertTrue(okSource.wasStreamClosed());
      }
    
      public void testConcat() throws IOException {
        ByteSource b1 = ByteSource.wrap(new byte[] {0, 1, 2, 3});
        ByteSource b2 = ByteSource.wrap(new byte[0]);
        ByteSource b3 = ByteSource.wrap(new byte[] {4, 5});
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 07 15:26:58 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/primitives/BytesTest.java

        assertThat(Bytes.lastIndexOf(ARRAY234, (byte) 4)).isEqualTo(2);
        assertThat(Bytes.lastIndexOf(new byte[] {(byte) 2, (byte) 3, (byte) 2, (byte) 3}, (byte) 3))
            .isEqualTo(3);
      }
    
      public void testConcat() {
        assertThat(Bytes.concat()).isEqualTo(EMPTY);
        assertThat(Bytes.concat(EMPTY)).isEqualTo(EMPTY);
        assertThat(Bytes.concat(EMPTY, EMPTY, EMPTY)).isEqualTo(EMPTY);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 06 16:10:08 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/primitives/BooleansTest.java

        assertThat(Booleans.lastIndexOf(ARRAY_FALSE_TRUE, true)).isEqualTo(1);
        assertThat(Booleans.lastIndexOf(new boolean[] {false, true, true}, true)).isEqualTo(2);
      }
    
      public void testConcat() {
        assertThat(Booleans.concat()).isEqualTo(EMPTY);
        assertThat(Booleans.concat(EMPTY)).isEqualTo(EMPTY);
        assertThat(Booleans.concat(EMPTY, EMPTY, EMPTY)).isEqualTo(EMPTY);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Mar 04 15:43:29 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/primitives/CharsTest.java

        try {
          Chars.constrainToRange((char) 1, (char) 3, (char) 2);
          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
      public void testConcat() {
        assertThat(Chars.concat()).isEqualTo(EMPTY);
        assertThat(Chars.concat(EMPTY)).isEqualTo(EMPTY);
        assertThat(Chars.concat(EMPTY, EMPTY, EMPTY)).isEqualTo(EMPTY);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/primitives/BooleansTest.java

        assertThat(Booleans.lastIndexOf(ARRAY_FALSE_TRUE, true)).isEqualTo(1);
        assertThat(Booleans.lastIndexOf(new boolean[] {false, true, true}, true)).isEqualTo(2);
      }
    
      public void testConcat() {
        assertThat(Booleans.concat()).isEqualTo(EMPTY);
        assertThat(Booleans.concat(EMPTY)).isEqualTo(EMPTY);
        assertThat(Booleans.concat(EMPTY, EMPTY, EMPTY)).isEqualTo(EMPTY);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Mar 04 15:43:29 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/primitives/ShortsTest.java

        try {
          Shorts.constrainToRange((short) 1, (short) 3, (short) 2);
          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
      public void testConcat() {
        assertThat(Shorts.concat()).isEqualTo(EMPTY);
        assertThat(Shorts.concat(EMPTY)).isEqualTo(EMPTY);
        assertThat(Shorts.concat(EMPTY, EMPTY, EMPTY)).isEqualTo(EMPTY);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 29 15:43:06 UTC 2024
    - 26.6K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/primitives/LongsTest.java

        try {
          Longs.constrainToRange((long) 1, (long) 3, (long) 2);
          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
      public void testConcat() {
        assertThat(Longs.concat()).isEqualTo(EMPTY);
        assertThat(Longs.concat(EMPTY)).isEqualTo(EMPTY);
        assertThat(Longs.concat(EMPTY, EMPTY, EMPTY)).isEqualTo(EMPTY);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 30K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/primitives/DoublesTest.java

        try {
          Doubles.constrainToRange((double) 1, (double) 3, (double) 2);
          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
      public void testConcat() {
        assertThat(Doubles.concat()).isEqualTo(EMPTY);
        assertThat(Doubles.concat(EMPTY)).isEqualTo(EMPTY);
        assertThat(Doubles.concat(EMPTY, EMPTY, EMPTY)).isEqualTo(EMPTY);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 29 15:43:06 UTC 2024
    - 31.5K bytes
    - Viewed (0)
Back to top