mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
clean up EOF
R=rsc DELTA=5 (0 added, 1 deleted, 4 changed) OCL=32465 CL=32467
This commit is contained in:
parent
1ff5897d64
commit
1fc0960fb4
2 changed files with 4 additions and 5 deletions
|
|
@ -240,7 +240,7 @@ func corruptDataCheck(s string, err os.Error, t *testing.T) {
|
|||
|
||||
// Check that we survive bad data.
|
||||
func TestBadData(t *testing.T) {
|
||||
corruptDataCheck("\x01\x01\x01", os.EOF, t);
|
||||
corruptDataCheck("", os.EOF, t);
|
||||
corruptDataCheck("\x7Fhi", io.ErrUnexpectedEOF, t);
|
||||
corruptDataCheck("\x03now is the time for all good men", errBadType, t);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue