Lines Matching refs:test
91 for _, test := range splitNTestCases {
92 got := test.in.SplitN(test.sep, test.n)
94 expectedString := dumpArray(test.expected)
120 for _, test := range valueTestCases {
121 got := test.in.Value(nil)
122 if got != test.expected {
123 t.Errorf("\nwith: %q\nwant: %q\n got: %q", test.in.Dump(), test.expected, got)
220 for _, test := range splitWordsTestCases {
221 got := test.in.Words()
223 expectedString := dumpArray(test.expected)
225 t.Errorf("with:\n%q\nexpected:\n%s\ngot:\n%s", test.in.Dump(), expectedString, gotString)
253 for _, test := range endsWithTestCases {
254 if test.in.EndsWith(test.endsWith) != test.expected {
255 t.Errorf("with:\n%q\nexpected:\n%t\ngot:\n%t", test.in.Dump(), test.expected, !test.expected)