bump(code.google.com/p/go.net): d4afe896f927+

This commit is contained in:
Ben Johnson
2014-01-02 16:41:38 -07:00
parent ae10b6226d
commit 60827ebd5a
10 changed files with 2368 additions and 2238 deletions

View File

@ -14,6 +14,24 @@ import (
"testing"
)
var icmpStringTests = []struct {
in ipv6.ICMPType
out string
}{
{ipv6.ICMPTypeDestinationUnreachable, "destination unreachable"},
{256, "<nil>"},
}
func TestICMPString(t *testing.T) {
for _, tt := range icmpStringTests {
s := tt.in.String()
if s != tt.out {
t.Errorf("got %s; expected %s", s, tt.out)
}
}
}
func TestICMPFilter(t *testing.T) {
switch runtime.GOOS {
case "plan9", "windows":