diff options
Diffstat (limited to 'src/time/format_test.go')
-rw-r--r-- | src/time/format_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/time/format_test.go b/src/time/format_test.go index af950a7c25..8c47dbcdd1 100644 --- a/src/time/format_test.go +++ b/src/time/format_test.go @@ -447,7 +447,7 @@ func TestParseErrors(t *testing.T) { _, err := Parse(test.format, test.value) if err == nil { t.Errorf("expected error for %q %q", test.format, test.value) - } else if strings.Index(err.Error(), test.expect) < 0 { + } else if !strings.Contains(err.Error(), test.expect) { t.Errorf("expected error with %q for %q %q; got %s", test.expect, test.format, test.value, err) } } |