Lines Matching refs:assert_eq

275         assert_eq!(r.inner.len(), 0);  in insert_non_overlapping()
277 assert_eq!(&r.flatten().collect::<Vec<u64>>(), &empty); in insert_non_overlapping()
280 assert_eq!(r.inner.len(), 1); in insert_non_overlapping()
281 assert_eq!(&r.flatten().collect::<Vec<u64>>(), &[4, 5, 6]); in insert_non_overlapping()
284 assert_eq!(r.inner.len(), 2); in insert_non_overlapping()
285 assert_eq!(&r.flatten().collect::<Vec<u64>>(), &[4, 5, 6, 9, 10, 11]); in insert_non_overlapping()
294 assert_eq!(&r.flatten().collect::<Vec<u64>>(), &[4, 5, 6, 9, 10, 11]); in insert_contained()
297 assert_eq!(r.inner.len(), 2); in insert_contained()
298 assert_eq!(&r.flatten().collect::<Vec<u64>>(), &[4, 5, 6, 9, 10, 11]); in insert_contained()
301 assert_eq!(r.inner.len(), 2); in insert_contained()
302 assert_eq!(&r.flatten().collect::<Vec<u64>>(), &[4, 5, 6, 9, 10, 11]); in insert_contained()
305 assert_eq!(r.inner.len(), 2); in insert_contained()
306 assert_eq!(&r.flatten().collect::<Vec<u64>>(), &[4, 5, 6, 9, 10, 11]); in insert_contained()
309 assert_eq!(r.inner.len(), 2); in insert_contained()
310 assert_eq!(&r.flatten().collect::<Vec<u64>>(), &[4, 5, 6, 9, 10, 11]); in insert_contained()
313 assert_eq!(r.inner.len(), 2); in insert_contained()
314 assert_eq!(&r.flatten().collect::<Vec<u64>>(), &[4, 5, 6, 9, 10, 11]); in insert_contained()
323 assert_eq!(&r.flatten().collect::<Vec<u64>>(), &[3, 4, 5, 9, 10, 11]); in insert_overlapping()
326 assert_eq!(r.inner.len(), 2); in insert_overlapping()
327 assert_eq!(&r.flatten().collect::<Vec<u64>>(), &[3, 4, 5, 6, 9, 10, 11]); in insert_overlapping()
330 assert_eq!(r.inner.len(), 2); in insert_overlapping()
331 assert_eq!(&r.flatten().collect::<Vec<u64>>(), &[ in insert_overlapping()
336 assert_eq!(r.inner.len(), 2); in insert_overlapping()
337 assert_eq!(&r.flatten().collect::<Vec<u64>>(), &[ in insert_overlapping()
342 assert_eq!(r.inner.len(), 2); in insert_overlapping()
343 assert_eq!(&r.flatten().collect::<Vec<u64>>(), &[ in insert_overlapping()
348 assert_eq!(r.inner.len(), 1); in insert_overlapping()
349 assert_eq!(&r.flatten().collect::<Vec<u64>>(), &[ in insert_overlapping()
360 assert_eq!(&r.flatten().collect::<Vec<u64>>(), &[ in insert_overlapping_multi()
365 assert_eq!(r.inner.len(), 3); in insert_overlapping_multi()
366 assert_eq!(&r.flatten().collect::<Vec<u64>>(), &[ in insert_overlapping_multi()
371 assert_eq!(r.inner.len(), 4); in insert_overlapping_multi()
372 assert_eq!(&r.flatten().collect::<Vec<u64>>(), &[ in insert_overlapping_multi()
377 assert_eq!(r.inner.len(), 1); in insert_overlapping_multi()
378 assert_eq!(&r.flatten().collect::<Vec<u64>>(), &[ in insert_overlapping_multi()
390 assert_eq!(r.prev_to(2), None); in prev_to()
391 assert_eq!(r.prev_to(4), Some(4..7)); in prev_to()
392 assert_eq!(r.prev_to(15), Some(9..12)); in prev_to()
393 assert_eq!(r.prev_to(5), Some(4..7)); in prev_to()
394 assert_eq!(r.prev_to(8), Some(4..7)); in prev_to()
404 assert_eq!(r.next_to(2), Some(4..7)); in next_to()
405 assert_eq!(r.next_to(12), None); in next_to()
406 assert_eq!(r.next_to(15), None); in next_to()
407 assert_eq!(r.next_to(5), Some(9..12)); in next_to()
408 assert_eq!(r.next_to(8), Some(9..12)); in next_to()
417 assert_eq!(r.inner.len(), 2); in push_item()
418 assert_eq!(&r.flatten().collect::<Vec<u64>>(), &[4, 5, 6, 9, 10, 11]); in push_item()
421 assert_eq!(r.inner.len(), 3); in push_item()
422 assert_eq!(&r.flatten().collect::<Vec<u64>>(), &[ in push_item()
427 assert_eq!(r.inner.len(), 3); in push_item()
428 assert_eq!(&r.flatten().collect::<Vec<u64>>(), &[ in push_item()
433 assert_eq!(r.inner.len(), 4); in push_item()
434 assert_eq!(&r.flatten().collect::<Vec<u64>>(), &[ in push_item()
441 assert_eq!(r.inner.len(), 3); in push_item()
442 assert_eq!(&r.flatten().collect::<Vec<u64>>(), &[ in push_item()
448 assert_eq!(r.inner.len(), 2); in push_item()
449 assert_eq!(&r.flatten().collect::<Vec<u64>>(), &[ in push_item()
455 assert_eq!(r.inner.len(), 1); in push_item()
456 assert_eq!(&r.flatten().collect::<Vec<u64>>(), &[ in push_item()
464 assert_eq!(r.inner.len(), 0); in flatten_rev()
467 assert_eq!(&r.flatten().collect::<Vec<u64>>(), &empty); in flatten_rev()
470 assert_eq!(r.inner.len(), 1); in flatten_rev()
471 assert_eq!(&r.flatten().collect::<Vec<u64>>(), &[4, 5, 6]); in flatten_rev()
472 assert_eq!(&r.flatten().rev().collect::<Vec<u64>>(), &[6, 5, 4]); in flatten_rev()
475 assert_eq!(r.inner.len(), 2); in flatten_rev()
476 assert_eq!(&r.flatten().collect::<Vec<u64>>(), &[4, 5, 6, 9, 10, 11]); in flatten_rev()
477 assert_eq!(&r.flatten().rev().collect::<Vec<u64>>(), &[ in flatten_rev()
485 assert_eq!(r.inner.len(), 0); in flatten_one()
488 assert_eq!(&r.flatten().collect::<Vec<u64>>(), &empty); in flatten_one()
491 assert_eq!(r.inner.len(), 1); in flatten_one()
492 assert_eq!(&r.flatten().collect::<Vec<u64>>(), &[0]); in flatten_one()
493 assert_eq!(&r.flatten().rev().collect::<Vec<u64>>(), &[0]); in flatten_one()
504 assert_eq!(&r.flatten().collect::<Vec<u64>>(), &[ in remove_largest()
509 assert_eq!(&r.flatten().collect::<Vec<u64>>(), &[ in remove_largest()
514 assert_eq!(&r.flatten().collect::<Vec<u64>>(), &[ in remove_largest()
519 assert_eq!(&r.flatten().collect::<Vec<u64>>(), &[ in remove_largest()
524 assert_eq!(&r.flatten().collect::<Vec<u64>>(), &[13, 16, 17, 18, 19]); in remove_largest()
527 assert_eq!(&r.flatten().collect::<Vec<u64>>(), &[18, 19]); in remove_largest()
530 assert_eq!(&r.flatten().collect::<Vec<u64>>(), &[19]); in remove_largest()
535 assert_eq!(&r.flatten().collect::<Vec<u64>>(), &empty); in remove_largest()
558 assert_eq!(r, expected); in eq_range()
564 assert_eq!(r.first(), None); in first_last()
565 assert_eq!(r.last(), None); in first_last()
568 assert_eq!(r.first(), Some(10)); in first_last()
569 assert_eq!(r.last(), Some(10)); in first_last()
572 assert_eq!(r.first(), Some(10)); in first_last()
573 assert_eq!(r.last(), Some(13)); in first_last()
576 assert_eq!(r.first(), Some(3)); in first_last()
577 assert_eq!(r.last(), Some(13)); in first_last()
580 assert_eq!(r.first(), Some(3)); in first_last()
581 assert_eq!(r.last(), Some(19)); in first_last()
584 assert_eq!(r.first(), Some(3)); in first_last()
585 assert_eq!(r.last(), Some(19)); in first_last()
591 assert_eq!(r.first(), None); in capacity()
592 assert_eq!(r.last(), None); in capacity()
595 assert_eq!(r.first(), Some(10)); in capacity()
596 assert_eq!(r.last(), Some(10)); in capacity()
599 assert_eq!(r.first(), Some(10)); in capacity()
600 assert_eq!(r.last(), Some(13)); in capacity()
603 assert_eq!(r.first(), Some(3)); in capacity()
604 assert_eq!(r.last(), Some(13)); in capacity()
607 assert_eq!(r.first(), Some(10)); in capacity()
608 assert_eq!(r.last(), Some(19)); in capacity()
611 assert_eq!(r.first(), Some(4)); in capacity()
612 assert_eq!(r.last(), Some(19)); in capacity()