Lines Matching refs:expected
138 expected string
143 expected: "",
148 expected: "prefix:a",
153 expected: "prefix:a prefix:b",
162 if out != testCase.expected {
166 t.Errorf(" expected: %#v", testCase.expected)
178 expected int
182 expected: 0,
186 expected: 1,
190 expected: 2,
194 expected: -1,
201 if out != testCase.expected {
205 t.Errorf(" expected: %#v", testCase.expected)
217 expected bool
221 expected: true,
225 expected: false,
232 if out != testCase.expected {
236 t.Errorf(" expected: %#v", testCase.expected)
248 expected bool
252 expected: true,
256 expected: true,
260 expected: false,
267 if out != testCase.expected {
271 t.Errorf(" expected: %#v", testCase.expected)
283 expected := []string{"b", "b", "d"}
284 if !reflect.DeepEqual(remainder, expected) {
288 t.Errorf(" expected: %#v", expected)
292 expected = []string{"a", "c", "c", "a"}
293 if !reflect.DeepEqual(filtered, expected) {
297 t.Errorf(" expected: %#v", expected)
305 expected := []string{"b", "d", "d"}
307 if !reflect.DeepEqual(out, expected) {
311 t.Errorf(" expected: %#v", expected)
422 expected := "libtest"
423 if root != expected {
424 t.Errorf("root should be %q but got %q", expected, root)
426 expected = ".so.1.0.30"
427 if suffix != expected {
428 t.Errorf("suffix should be %q but got %q", expected, suffix)
430 expected = ".so"
431 if ext != expected {
432 t.Errorf("ext should be %q but got %q", expected, ext)
438 expected := "libtest"
439 if root != expected {
440 t.Errorf("root should be %q but got %q", expected, root)
442 expected = ".so.1svn"
443 if suffix != expected {
444 t.Errorf("suffix should be %q but got %q", expected, suffix)
446 expected = ".so"
447 if ext != expected {
448 t.Errorf("ext should be %q but got %q", expected, ext)
454 expected := "libtest.1.0.30"
455 if root != expected {
456 t.Errorf("root should be %q but got %q", expected, root)
458 expected = ".so"
459 if suffix != expected {
460 t.Errorf("suffix should be %q but got %q", expected, suffix)
462 expected = ".so"
463 if ext != expected {
464 t.Errorf("ext should be %q but got %q", expected, ext)
470 expected := "test"
471 if root != expected {
472 t.Errorf("root should be %q but got %q", expected, root)
474 expected = ".exe"
475 if suffix != expected {
476 t.Errorf("suffix should be %q but got %q", expected, suffix)
478 if ext != expected {
479 t.Errorf("ext should be %q but got %q", expected, ext)