Lines Matching refs:expected
139 expected string
144 expected: "",
149 expected: "prefix:a",
154 expected: "prefix:a prefix:b",
163 if out != testCase.expected {
167 t.Errorf(" expected: %#v", testCase.expected)
179 expected int
183 expected: 0,
187 expected: 1,
191 expected: 2,
195 expected: -1,
202 if out != testCase.expected {
206 t.Errorf(" expected: %#v", testCase.expected)
218 expected bool
222 expected: true,
226 expected: false,
233 if out != testCase.expected {
237 t.Errorf(" expected: %#v", testCase.expected)
249 expected bool
253 expected: true,
257 expected: true,
261 expected: false,
268 if out != testCase.expected {
272 t.Errorf(" expected: %#v", testCase.expected)
284 expected := []string{"b", "b", "d"}
285 if !reflect.DeepEqual(remainder, expected) {
289 t.Errorf(" expected: %#v", expected)
293 expected = []string{"a", "c", "c", "a"}
294 if !reflect.DeepEqual(filtered, expected) {
298 t.Errorf(" expected: %#v", expected)
314 expected := []string{"b", "d", "d"}
316 if !reflect.DeepEqual(out, expected) {
320 t.Errorf(" expected: %#v", expected)
431 expected := "libtest"
432 if root != expected {
433 t.Errorf("root should be %q but got %q", expected, root)
435 expected = ".so.1.0.30"
436 if suffix != expected {
437 t.Errorf("suffix should be %q but got %q", expected, suffix)
439 expected = ".so"
440 if ext != expected {
441 t.Errorf("ext should be %q but got %q", expected, ext)
447 expected := "libtest"
448 if root != expected {
449 t.Errorf("root should be %q but got %q", expected, root)
451 expected = ".so.1svn"
452 if suffix != expected {
453 t.Errorf("suffix should be %q but got %q", expected, suffix)
455 expected = ".so"
456 if ext != expected {
457 t.Errorf("ext should be %q but got %q", expected, ext)
463 expected := "libtest.1.0.30"
464 if root != expected {
465 t.Errorf("root should be %q but got %q", expected, root)
467 expected = ".so"
468 if suffix != expected {
469 t.Errorf("suffix should be %q but got %q", expected, suffix)
471 expected = ".so"
472 if ext != expected {
473 t.Errorf("ext should be %q but got %q", expected, ext)
479 expected := "test"
480 if root != expected {
481 t.Errorf("root should be %q but got %q", expected, root)
483 expected = ".exe"
484 if suffix != expected {
485 t.Errorf("suffix should be %q but got %q", expected, suffix)
487 if ext != expected {
488 t.Errorf("ext should be %q but got %q", expected, ext)