• Home
  • Raw
  • Download

Lines Matching refs:array2

244     Array<Entry, kMaxSize> array2;  in TestArrayCopyAndFindMatching()  local
248 VerifyOrQuit(array2.IsEmpty()); in TestArrayCopyAndFindMatching()
257 SuccessOrQuit(array2.PushBack(ps3)); in TestArrayCopyAndFindMatching()
258 SuccessOrQuit(array2.PushBack(ps5)); in TestArrayCopyAndFindMatching()
259 VerifyOrQuit(array2.GetLength() == 2); in TestArrayCopyAndFindMatching()
261 array3 = array2 = array1; in TestArrayCopyAndFindMatching()
264 VerifyOrQuit(array2.GetLength() == 4); in TestArrayCopyAndFindMatching()
269 VerifyOrQuit(array1[index] == array2[index]); in TestArrayCopyAndFindMatching()
280 Array<Entry, kMaxSize> array4(array2); in TestArrayCopyAndFindMatching()
286 VerifyOrQuit(array2[index] == array4[index]); in TestArrayCopyAndFindMatching()
290 SuccessOrQuit(array2.PushBack(ps5)); in TestArrayCopyAndFindMatching()
291 VerifyOrQuit(array2.GetLength() == 5); in TestArrayCopyAndFindMatching()
293 for (const Entry &entry : array2) in TestArrayCopyAndFindMatching()
299 match = array2.FindMatching(entry.mName); in TestArrayCopyAndFindMatching()
302 VerifyOrQuit(array2.ContainsMatching(entry.mName)); in TestArrayCopyAndFindMatching()
304 match = array2.FindMatching(entry.mYear); in TestArrayCopyAndFindMatching()
307 VerifyOrQuit(array2.ContainsMatching(entry.mYear)); in TestArrayCopyAndFindMatching()
310 VerifyOrQuit(array2.FindMatching("PS6") == nullptr); in TestArrayCopyAndFindMatching()
311 VerifyOrQuit(!array2.ContainsMatching("PS6")); in TestArrayCopyAndFindMatching()
312 VerifyOrQuit(array2.FindMatching(static_cast<uint16_t>(2001)) == nullptr); in TestArrayCopyAndFindMatching()
313 VerifyOrQuit(!array2.ContainsMatching(static_cast<uint16_t>(2001))); in TestArrayCopyAndFindMatching()
317 array1 = array2; in TestArrayCopyAndFindMatching()
325 array2 = array1; in TestArrayCopyAndFindMatching()
326 match = array2.Find(entryToRemove); in TestArrayCopyAndFindMatching()
328 array2.Remove(*match); in TestArrayCopyAndFindMatching()
330 VerifyOrQuit(array2.GetLength() == array1.GetLength() - 1); in TestArrayCopyAndFindMatching()
332 for (const Entry &entry : array2) in TestArrayCopyAndFindMatching()
340 array2 = array1; in TestArrayCopyAndFindMatching()
341 array2.RemoveMatching(entryToRemove.mName); in TestArrayCopyAndFindMatching()
346 VerifyOrQuit(array2.GetLength() == array1.GetLength() - 1); in TestArrayCopyAndFindMatching()
348 for (const Entry &entry : array2) in TestArrayCopyAndFindMatching()
357 array2.RemoveMatching(entryToRemove.mName); in TestArrayCopyAndFindMatching()
358 VerifyOrQuit(array2.GetLength() == array1.GetLength() - 1); in TestArrayCopyAndFindMatching()
362 array2 = array1; in TestArrayCopyAndFindMatching()
363 array2.RemoveAllMatching(entryToRemove.mName); in TestArrayCopyAndFindMatching()
365 VerifyOrQuit(array2.GetLength() == array1.GetLength() - 1); in TestArrayCopyAndFindMatching()
367 for (const Entry &entry : array2) in TestArrayCopyAndFindMatching()
373 array2.RemoveAllMatching(entryToRemove.mName); in TestArrayCopyAndFindMatching()
374 VerifyOrQuit(array2.GetLength() == array1.GetLength() - 1); in TestArrayCopyAndFindMatching()
381 array3 = array2; in TestArrayCopyAndFindMatching()
390 VerifyOrQuit(array2.Contains(entry)); in TestArrayCopyAndFindMatching()
394 for (const Entry &entry : array2) in TestArrayCopyAndFindMatching()
398 VerifyOrQuit(array2.Contains(entry)); in TestArrayCopyAndFindMatching()