Open KhodeN opened 7 years ago
type WithDate struct { Time dat.NullTime `json:"time"` } func TestParseNumberAsDate(t *testing.T) { data := `{"time":5}` result := &WithDate{} json.Unmarshal([]byte(data), result) // PANIC! }
This test should probably be added to the actual tests as well.
Please, accept