Lines Matching full:results
210 SkTArray<SkString> results; in DEF_TEST() local
212 SkStrSplit("a-_b_c-dee--f-_-_-g-", "-_", &results); in DEF_TEST()
213 REPORTER_ASSERT(r, results.count() == 6); in DEF_TEST()
214 REPORTER_ASSERT(r, results[0].equals("a")); in DEF_TEST()
215 REPORTER_ASSERT(r, results[1].equals("b")); in DEF_TEST()
216 REPORTER_ASSERT(r, results[2].equals("c")); in DEF_TEST()
217 REPORTER_ASSERT(r, results[3].equals("dee")); in DEF_TEST()
218 REPORTER_ASSERT(r, results[4].equals("f")); in DEF_TEST()
219 REPORTER_ASSERT(r, results[5].equals("g")); in DEF_TEST()
221 results.reset(); in DEF_TEST()
222 SkStrSplit("\n", "\n", &results); in DEF_TEST()
223 REPORTER_ASSERT(r, results.count() == 0); in DEF_TEST()
225 results.reset(); in DEF_TEST()
226 SkStrSplit("", "\n", &results); in DEF_TEST()
227 REPORTER_ASSERT(r, results.count() == 0); in DEF_TEST()
229 results.reset(); in DEF_TEST()
230 SkStrSplit("a", "\n", &results); in DEF_TEST()
231 REPORTER_ASSERT(r, results.count() == 1); in DEF_TEST()
232 REPORTER_ASSERT(r, results[0].equals("a")); in DEF_TEST()
235 SkTArray<SkString> results; in DEF_TEST() local
236 SkStrSplit("a-_b_c-dee--f-_-_-g-", "-_", kStrict_SkStrSplitMode, &results); in DEF_TEST()
237 REPORTER_ASSERT(r, results.count() == 13); in DEF_TEST()
238 REPORTER_ASSERT(r, results[0].equals("a")); in DEF_TEST()
239 REPORTER_ASSERT(r, results[1].equals("")); in DEF_TEST()
240 REPORTER_ASSERT(r, results[2].equals("b")); in DEF_TEST()
241 REPORTER_ASSERT(r, results[3].equals("c")); in DEF_TEST()
242 REPORTER_ASSERT(r, results[4].equals("dee")); in DEF_TEST()
243 REPORTER_ASSERT(r, results[5].equals("")); in DEF_TEST()
244 REPORTER_ASSERT(r, results[6].equals("f")); in DEF_TEST()
245 REPORTER_ASSERT(r, results[7].equals("")); in DEF_TEST()
246 REPORTER_ASSERT(r, results[8].equals("")); in DEF_TEST()
247 REPORTER_ASSERT(r, results[9].equals("")); in DEF_TEST()
248 REPORTER_ASSERT(r, results[10].equals("")); in DEF_TEST()
249 REPORTER_ASSERT(r, results[11].equals("g")); in DEF_TEST()
250 REPORTER_ASSERT(r, results[12].equals("")); in DEF_TEST()
252 results.reset(); in DEF_TEST()
253 SkStrSplit("\n", "\n", kStrict_SkStrSplitMode, &results); in DEF_TEST()
254 REPORTER_ASSERT(r, results.count() == 2); in DEF_TEST()
255 REPORTER_ASSERT(r, results[0].equals("")); in DEF_TEST()
256 REPORTER_ASSERT(r, results[1].equals("")); in DEF_TEST()
258 results.reset(); in DEF_TEST()
259 SkStrSplit("", "\n", kStrict_SkStrSplitMode, &results); in DEF_TEST()
260 REPORTER_ASSERT(r, results.count() == 0); in DEF_TEST()
262 results.reset(); in DEF_TEST()
263 SkStrSplit("a", "\n", kStrict_SkStrSplitMode, &results); in DEF_TEST()
264 REPORTER_ASSERT(r, results.count() == 1); in DEF_TEST()
265 REPORTER_ASSERT(r, results[0].equals("a")); in DEF_TEST()
267 results.reset(); in DEF_TEST()
268 SkStrSplit(",,", ",", kStrict_SkStrSplitMode, &results); in DEF_TEST()
269 REPORTER_ASSERT(r, results.count() == 3); in DEF_TEST()
270 REPORTER_ASSERT(r, results[0].equals("")); in DEF_TEST()
271 REPORTER_ASSERT(r, results[1].equals("")); in DEF_TEST()
272 REPORTER_ASSERT(r, results[2].equals("")); in DEF_TEST()
274 results.reset(); in DEF_TEST()
275 SkStrSplit(",a,b,", ",", kStrict_SkStrSplitMode, &results); in DEF_TEST()
276 REPORTER_ASSERT(r, results.count() == 4); in DEF_TEST()
277 REPORTER_ASSERT(r, results[0].equals("")); in DEF_TEST()
278 REPORTER_ASSERT(r, results[1].equals("a")); in DEF_TEST()
279 REPORTER_ASSERT(r, results[2].equals("b")); in DEF_TEST()
280 REPORTER_ASSERT(r, results[3].equals("")); in DEF_TEST()