Commit b18a5600 authored by Dominik Honnef's avatar Dominik Honnef Committed by Andrew Gerrand

html/template, encoding/asn1: fix test errors

Change-Id: I1da1d718609eb6a7b78d29b173ec780bde22c687
Reviewed-on: https://go-review.googlesource.com/16422Reviewed-by: 's avatarRalph Corderoy <ralph@inputplus.co.uk>
Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: 's avatarAndrew Gerrand <adg@golang.org>
parent b46df695
......@@ -948,7 +948,7 @@ func TestMarshalNilValue(t *testing.T) {
}
for i, test := range nilValueTestData {
if _, err := Marshal(test); err == nil {
t.Fatal("#%d: successfully marshaled nil value", i)
t.Fatalf("#%d: successfully marshaled nil value", i)
}
}
}
......@@ -81,7 +81,7 @@ func TestClone(t *testing.T) {
// Clone t0 as t4. Redefining the "lhs" template should not fail.
t4 := Must(t0.Clone())
if _, err := t4.Parse(`{{define "lhs"}} OK {{end}}`); err != nil {
t.Error(`redefine "lhs": got err %v want non-nil`, err)
t.Errorf(`redefine "lhs": got err %v want nil`, err)
}
// Cloning t1 should fail as it has been executed.
if _, err := t1.Clone(); err == nil {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment