• Home
  • Raw
  • Download

Lines Matching full:want

148 		if got, want := m.Name, tt.name; got != want {
149 t.Errorf("NearestMatch(%q) = %q, want %q", tt.description, got, want)
151 if got, want := m.Confidence, tt.minConf; got < want {
152 … t.Errorf("NearestMatch(%q) returned confidence %v, want minimum of %v", tt.description, got, want)
154 if got, want := m.Confidence, tt.maxConf; got > want {
155 t.Errorf("NearestMatch(%q) = %v, want maxiumum of %v", tt.description, got, want)
186 want []result
192 want: []result{
205 want: []result{
218 want: []result{
237 want: []result{
256 want: nil,
262 want: nil,
268 want: []result{
281 if len(matches) != len(tt.want) {
282 …Errorf("MultipleMatch(%q) not enough matches = %v, want %v", tt.description, len(matches), len(tt.
287 w := tt.want[i]
288 if got, want := m.Name, w.key; got != want {
289 t.Errorf("MultipleMatch(%q) = %q, want %q", tt.description, got, want)
291 if got, want := m.Confidence, w.minConf; got < want {
292 t.Errorf("MultipleMatch(%q) %q = %v, want minimum of %v", tt.description, w.key, got, want)
294 if got, want := m.Confidence, w.maxConf; got > want {
295 t.Errorf("MultipleMatch(%q) %q = %v, want maximum of %v", tt.description, w.key, got, want)
297 if got, want := m.Offset, w.offset; got != want {
298 t.Errorf("MultipleMatch(%q) %q = %v, want offset of %v", tt.description, w.key, got, want)
307 want float64
318 if got, want := diffRatio(tt.x, tt.y), tt.want; got != want {
319 t.Errorf("diffRatio(%q, %q) = %f, want %f", tt.x, tt.y, got, want)
328 want Matches
344 want: Matches{
371 want: Matches{
398 want: Matches{
426 want: Matches{
453 want: Matches{
480 want: Matches{
497 if !reflect.DeepEqual(tt.matches, tt.want) {
501 for _, x := range tt.want {
502 t.Errorf("want: %v", x)
504 t.Errorf("MatchesSort(%q) = %v, want %v", tt.description, tt.matches, tt.want)
540 t.Errorf("DiffRangeEnd(%q) = end %v, want %v", tt.description, e, tt.end)