Skip to content

Commit

Permalink
Add Iterable.containsAny().
Browse files Browse the repository at this point in the history
Closes #40
  • Loading branch information
ThinkDigitalSoftware committed Jan 22, 2020
1 parent de07c89 commit e13d1ec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/iterable_test.dart
Expand Up @@ -166,10 +166,10 @@ void main() {

test('.containsAny()', () {
var list1 = const [1, 2, 3, 4, 5];
var list2 = const [1, 3, 5];
var list2 = const [1, 3, 6];

expect(list1.containsAll(list2), true);
expect(list2.containsAll(list1), false);
expect(list1.containsAny(list2), true);
expect(list2.containsAny([2, 4, 7]), false);
});

test('.contentEquals()', () {
Expand Down

0 comments on commit e13d1ec

Please sign in to comment.