Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for TestWriteString (0.08 seconds)

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

        assertThat(Files.toString(i18nFile, UTF_8)).isEqualTo(I18N);
        assertThat(Files.toString(i18nFile, US_ASCII)).isNotEqualTo(I18N);
      }
    
      public void testWriteString() throws IOException {
        File temp = createTempFile();
        Files.write(I18N, temp, UTF_16LE);
        assertThat(Files.toString(temp, UTF_16LE)).isEqualTo(I18N);
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 22.8K bytes
    - Click Count (0)
  2. src/bufio/bufio_test.go

    	}
    	// Does it wrap if existing buffer is too small?
    	b2 := NewWriterSize(b, 2*BufSize)
    	if b2 == b {
    		t.Error("NewWriterSize did not enlarge buffer")
    	}
    }
    
    func TestWriteString(t *testing.T) {
    	const BufSize = 8
    	buf := new(strings.Builder)
    	b := NewWriterSize(buf, BufSize)
    	b.WriteString("0")                         // easy
    	b.WriteString("123456")                    // still easy
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Fri Feb 07 01:08:54 GMT 2025
    - 51.6K bytes
    - Click Count (0)
Back to Top