Browse Source

add test for nil TestMarshaler

Roger Peppe 8 years ago
parent
commit
ab5d55c35f
1 changed files with 3 additions and 0 deletions
  1. 3 0
      encode_test.go

+ 3 - 0
encode_test.go

@@ -24,6 +24,9 @@ var marshalTests = []struct {
 	{
 		nil,
 		"null\n",
+	}, {
+		(*marshalerType)(nil),
+		"null\n",
 	}, {
 		&struct{}{},
 		"{}\n",