10 func TestMarshalFiltersWithNanoseconds(t *testing.T) {
12 t0str := t0.Format(time.RFC3339Nano)
13 buf, err := json.Marshal([]Filter{
14 {Attr: "modified_at", Operator: "=", Operand: t0}})
18 if expect := []byte(`[["modified_at","=","` + t0str + `"]]`); 0 != bytes.Compare(buf, expect) {
19 t.Errorf("Encoded as %q, expected %q", buf, expect)