Lines Matching refs:tt
76 for _, tt := range testCases {
77 // Apply fix: should get tt.Out.
78 out, fixed, ok := parseFixPrint(t, tt.Fn, tt.Name, tt.In, true)
84 out, _, ok = parseFixPrint(t, fnop, tt.Name, out, false)
89 if out != tt.Out {
90 t.Errorf("%s: incorrect output.\n", tt.Name)
91 if !strings.HasPrefix(tt.Name, "testdata/") {
92 t.Errorf("--- have\n%s\n--- want\n%s", out, tt.Out)
94 tdiff(t, out, tt.Out)
98 if changed := out != tt.In; changed != fixed {
99 t.Errorf("%s: changed=%v != fixed=%v", tt.Name, changed, fixed)
104 out2, fixed2, ok := parseFixPrint(t, tt.Fn, tt.Name+" output", out, true)
110 t.Errorf("%s: applied fixes during second round", tt.Name)
116 tt.Name, out, out2)