Explorar el Código

add test for nil TestMarshaler

Roger Peppe hace 8 años
padre
commit
ab5d55c35f
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  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",