Skip to content

Commit

Permalink
Merge 1e5ce9e into 16e18aa
Browse files Browse the repository at this point in the history
  • Loading branch information
luanpotter authored Feb 23, 2021
2 parents 16e18aa + 1e5ce9e commit d22177e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/ordered_set_test.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import 'dart:math';

import 'package:test/test.dart';
import 'package:ordered_set/ordered_set.dart';

Expand Down Expand Up @@ -99,6 +101,15 @@ void main() {
expect(a.length, 7);
expect(a.toList().join(), '1222334');
});

test('duplicated item is ok', () {
OrderedSet<int> a = OrderedSet();
a.add(2);
a.add(1);
a.add(2);
expect(a.length, 3);
expect(a.toList().join(), '122');
});
});

group('#length', () {
Expand Down

0 comments on commit d22177e

Please sign in to comment.