Lines Matching refs:expected
141 expected string
146 expected: "",
151 expected: "prefix:a",
156 expected: "prefix:a prefix:b",
165 if out != testCase.expected {
169 t.Errorf(" expected: %#v", testCase.expected)
181 expected int
185 expected: 0,
189 expected: 1,
193 expected: 2,
197 expected: -1,
204 if out != testCase.expected {
208 t.Errorf(" expected: %#v", testCase.expected)
220 expected bool
224 expected: true,
228 expected: false,
235 if out != testCase.expected {
239 t.Errorf(" expected: %#v", testCase.expected)
251 expected bool
255 expected: true,
259 expected: true,
263 expected: false,
270 if out != testCase.expected {
274 t.Errorf(" expected: %#v", testCase.expected)
286 expected := []string{"b", "b", "d"}
287 if !reflect.DeepEqual(remainder, expected) {
291 t.Errorf(" expected: %#v", expected)
295 expected = []string{"a", "c", "c", "a"}
296 if !reflect.DeepEqual(filtered, expected) {
300 t.Errorf(" expected: %#v", expected)
316 expected := []string{"b", "d", "d"}
318 if !reflect.DeepEqual(out, expected) {
322 t.Errorf(" expected: %#v", expected)
441 expected := "libtest"
442 if root != expected {
443 t.Errorf("root should be %q but got %q", expected, root)
445 expected = ".so.1.0.30"
446 if suffix != expected {
447 t.Errorf("suffix should be %q but got %q", expected, suffix)
449 expected = ".so"
450 if ext != expected {
451 t.Errorf("ext should be %q but got %q", expected, ext)
457 expected := "libtest"
458 if root != expected {
459 t.Errorf("root should be %q but got %q", expected, root)
461 expected = ".so.1svn"
462 if suffix != expected {
463 t.Errorf("suffix should be %q but got %q", expected, suffix)
465 expected = ".so"
466 if ext != expected {
467 t.Errorf("ext should be %q but got %q", expected, ext)
473 expected := "libtest.1.0.30"
474 if root != expected {
475 t.Errorf("root should be %q but got %q", expected, root)
477 expected = ".so"
478 if suffix != expected {
479 t.Errorf("suffix should be %q but got %q", expected, suffix)
481 expected = ".so"
482 if ext != expected {
483 t.Errorf("ext should be %q but got %q", expected, ext)
489 expected := "test"
490 if root != expected {
491 t.Errorf("root should be %q but got %q", expected, root)
493 expected = ".exe"
494 if suffix != expected {
495 t.Errorf("suffix should be %q but got %q", expected, suffix)
497 if ext != expected {
498 t.Errorf("ext should be %q but got %q", expected, ext)
654 func testSortedKeysHelper[K cmp.Ordered, V any](t *testing.T, name string, input map[K]V, expected …
658 if !reflect.DeepEqual(actual, expected) {
659 t.Errorf("expected %v, got %v", expected, actual)
688 expected []string
693 expected: nil,
698 expected: nil,
703 expected: []string{"a", "b"},
708 expected: []string{"a", "b", "b"},
715 if g, w := got, tt.expected; !reflect.DeepEqual(g, w) {
726 expected []string
731 expected: nil,
736 expected: nil,
741 expected: []string{"a", "b"},
746 expected: []string{"a", "b"},
753 if g, w := got, tt.expected; !reflect.DeepEqual(g, w) {
763 expected []string
768 expected: nil,
773 expected: []string{},
778 expected: []string{"one"},
783 expected: []string{"two", "one"},
788 expected: []string{"three", "two", "one"},
798 if !reflect.DeepEqual(slice, testCase.expected) {
799 t.Errorf("expected %#v, got %#v", testCase.expected, slice)
812 if !reflect.DeepEqual(slice, testCase.expected) {
813 t.Errorf("expected %#v, got %#v", testCase.expected, slice)