assorted formatting and typo fixes

This commit is contained in:
Jonathan Boulle
2014-07-18 12:03:22 -07:00
parent 3800c3bdcb
commit c43035088b
11 changed files with 19 additions and 19 deletions

View File

@@ -112,14 +112,14 @@ func TestIsValidPortNum(t *testing.T) {
goodValues := []int{1, 2, 1000, 16384, 32768, 65535}
for _, val := range goodValues {
if !IsValidPortNum(val) {
t.Errorf("expected true for '%s'", val)
t.Errorf("expected true for '%d'", val)
}
}
badValues := []int{0, -1, 65536, 100000}
for _, val := range badValues {
if IsValidPortNum(val) {
t.Errorf("expected false for '%s'", val)
t.Errorf("expected false for '%d'", val)
}
}
}