From b930962baef4e55a6bc2e0cd17ca4b89b852d10c Mon Sep 17 00:00:00 2001 From: BirjuVachhani Date: Mon, 6 Jan 2025 18:48:43 +0530 Subject: [PATCH] :white_check_mark: improve iterable tests --- test/iterable_test.dart | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/iterable_test.dart b/test/iterable_test.dart index d1fa255..62b8ad3 100644 --- a/test/iterable_test.dart +++ b/test/iterable_test.dart @@ -237,14 +237,15 @@ void main() { // except tests expect([1, 2, 3].except(2), containsAllInOrder([1, 3])); expect([1, 2, 3].except(1, 5), containsAllInOrder([2, 3])); - - expect([1, 2, 3].exceptAll([2]), containsAllInOrder([1, 3])); - expect([1, 2, 3].exceptAll([1, 5]), containsAllInOrder([2, 3])); + expect([1, 2, 3, 4, 5, 6].except(1, 2, 3, 4, 5, 6), isEmpty); + expect([4, 5, 6].except(1, 2, 3, 4, 5, 6), isEmpty); + expect([1, 2, 3, 'Hello', 5, 6].except(1, 2, 3, 'Hello'), + containsAllInOrder([5, 6])); // exceptAll tests expect([1, 2, 3].exceptAll([2]), containsAllInOrder([1, 3])); - expect([1, 2, 3].exceptAll([]), containsAllInOrder([1, 2, 3])); expect([1, 2, 3].exceptAll([1, 5]), containsAllInOrder([2, 3])); + expect([1, 2, 3].exceptAll([]), containsAllInOrder([1, 2, 3])); // containsAll tests expect([1, 2, 3].containsAll([1, 2]), isTrue);