Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestBasicOperations (0.11 sec)

  1. src/bytes/buffer_test.go

    	}
    
    	check(t, testname+" (empty 4)", buf, "")
    }
    
    func TestBasicOperations(t *testing.T) {
    	var buf Buffer
    
    	for i := 0; i < 5; i++ {
    		check(t, "TestBasicOperations (1)", &buf, "")
    
    		buf.Reset()
    		check(t, "TestBasicOperations (2)", &buf, "")
    
    		buf.Truncate(0)
    		check(t, "TestBasicOperations (3)", &buf, "")
    
    		n, err := buf.Write(testBytes[0:1])
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Sep 03 20:55:15 UTC 2024
    - 18.6K bytes
    - Viewed (0)
Back to top