Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(98)

Unified Diff: packages/quiver/test/iterables/merge_test.dart

Issue 2989763002: Update charted to 0.4.8 and roll (Closed)
Patch Set: Removed Cutch from list of reviewers Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: packages/quiver/test/iterables/merge_test.dart
diff --git a/packages/quiver/test/iterables/merge_test.dart b/packages/quiver/test/iterables/merge_test.dart
index efc1eea576afff83648c74c2f6713cb8fef02fea..ee2ab3a823a1a35dd5ff5f12a174192640f7a411 100644
--- a/packages/quiver/test/iterables/merge_test.dart
+++ b/packages/quiver/test/iterables/merge_test.dart
@@ -33,7 +33,12 @@ main() {
});
test("should merge single-element iterables", () {
- expect(merge([['a'], ['b']]), ['a', 'b']);
+ expect(
+ merge([
+ ['a'],
+ ['b']
+ ]),
+ ['a', 'b']);
});
test("should output the union of elements in both iterables", () {
@@ -44,7 +49,7 @@ main() {
test("should honor the comparator", () {
var a = ['c', 'b', 'a'];
expect(merge([a, a], (x, y) => -x.compareTo(y)),
- [ 'c', 'c', 'b', 'b', 'a', 'a' ]);
+ ['c', 'c', 'b', 'b', 'a', 'a']);
});
test("should merge empty iterables with non-empty ones", () {
@@ -78,10 +83,18 @@ main() {
var b = ['b', 'e', 'h', 'k'];
var c = ['c', 'f', 'i', 'l'];
var expected = [
- 'a', 'b', 'c',
- 'd', 'e', 'f',
- 'g', 'h', 'i',
- 'j', 'k', 'l'
+ 'a',
+ 'b',
+ 'c',
+ 'd',
+ 'e',
+ 'f',
+ 'g',
+ 'h',
+ 'i',
+ 'j',
+ 'k',
+ 'l'
];
expect(merge([a, b, c]), expected);
expect(merge([a, c, b]), expected);
« no previous file with comments | « packages/quiver/test/iterables/enumerate_test.dart ('k') | packages/quiver/test/iterables/partition_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698