| Index: samples/tests/samples/lib/util/util_test.dart
|
| ===================================================================
|
| --- samples/tests/samples/lib/util/util_test.dart (revision 8345)
|
| +++ samples/tests/samples/lib/util/util_test.dart (working copy)
|
| @@ -14,32 +14,32 @@
|
| test('insertAt', () {
|
| var a = [];
|
| CollectionUtils.insertAt(a, 0, 1);
|
| - expect(a).equalsCollection([1]);
|
| + expect(a, orderedEquals([1]));
|
|
|
| CollectionUtils.insertAt(a, 0, 2);
|
| - expect(a).equalsCollection([2, 1]);
|
| + expect(a, orderedEquals([2, 1]));
|
|
|
| CollectionUtils.insertAt(a, 0, 5);
|
| CollectionUtils.insertAt(a, 0, 4);
|
| CollectionUtils.insertAt(a, 0, 3);
|
| - expect(a).equalsCollection([3, 4, 5, 2, 1]);
|
| + expect(a, orderedEquals([3, 4, 5, 2, 1]));
|
|
|
| a = [];
|
| CollectionUtils.insertAt(a, 0, 1);
|
| - expect(a).equalsCollection([1]);
|
| + expect(a, orderedEquals([1]));
|
|
|
| CollectionUtils.insertAt(a, 1, 2);
|
| - expect(a).equalsCollection([1, 2]);
|
| + expect(a, orderedEquals([1, 2]));
|
|
|
| CollectionUtils.insertAt(a, 1, 3);
|
| CollectionUtils.insertAt(a, 3, 4);
|
| CollectionUtils.insertAt(a, 3, 5);
|
| - expect(a).equalsCollection([1, 3, 2, 5, 4]);
|
| + expect(a, orderedEquals([1, 3, 2, 5, 4]));
|
| });
|
|
|
| test('defaultString', () {
|
| - expect(StringUtils.defaultString(null)).equals('');
|
| - expect(StringUtils.defaultString('')).equals('');
|
| - expect(StringUtils.defaultString('test')).equals('test');
|
| + expect(StringUtils.defaultString(null), isEmpty);
|
| + expect(StringUtils.defaultString(''), isEmpty);
|
| + expect(StringUtils.defaultString('test'), equals('test'));
|
| });
|
| }
|
|
|