Home | History | Annotate | Download | only in json

Lines Matching refs:tt

325 	for _, tt := range testCases {
326 out, err := Marshal(tt.v)
327 if err != nil || string(out) != tt.want {
328 t.Errorf("Marshal(%#v) = %#q, %#v, want %#q, nil", tt.v, out, err, tt.want)
550 for _, tt := range encodeStringTests {
551 b, err := Marshal(tt.in)
553 t.Errorf("Marshal(%q): %v", tt.in, err)
557 if out != tt.out {
558 t.Errorf("Marshal(%q) = %#q, want %#q", tt.in, out, tt.out)
823 for i, tt := range tests {
824 b, err := Marshal(tt.in)
825 if ok := (err == nil); ok != tt.ok {
832 if got := string(b); got != tt.want {
833 t.Errorf("test %d, Marshal(%#v) = %q, want %q", i, tt.in, got, tt.want)