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

Side by Side Diff: pkg/barback/test/multiset_test.dart

Issue 108853003: Pass logs through transformer groups. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix test suite name. Created 7 years 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pkg/barback/test/logger_test.dart ('k') | pkg/barback/test/mutliset_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library barback.test.multiset_test; 5 library barback.test.multiset_test;
6 6
7 import 'dart:async';
8
9 import 'package:barback/src/multiset.dart'; 7 import 'package:barback/src/multiset.dart';
10 import 'package:unittest/unittest.dart'; 8 import 'package:unittest/unittest.dart';
11 9
12 import 'utils.dart'; 10 import 'utils.dart';
13 11
14 main() { 12 main() {
15 initConfig(); 13 initConfig();
16 14
17 test("new Multiset() creates an empty set", () { 15 test("new Multiset() creates an empty set", () {
18 var multiSet = new Multiset(); 16 var multiSet = new Multiset();
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 test("iterator orders distinct elements in insertion order", () { 70 test("iterator orders distinct elements in insertion order", () {
73 var multiSet = new Multiset()..add(1)..add(2)..add(3)..add(4)..add(5); 71 var multiSet = new Multiset()..add(1)..add(2)..add(3)..add(4)..add(5);
74 expect(multiSet.toList(), equals([1, 2, 3, 4, 5])); 72 expect(multiSet.toList(), equals([1, 2, 3, 4, 5]));
75 }); 73 });
76 74
77 test("iterator groups multiple copies of an element together", () { 75 test("iterator groups multiple copies of an element together", () {
78 var multiSet = new Multiset()..add(1)..add(2)..add(1)..add(2)..add(1); 76 var multiSet = new Multiset()..add(1)..add(2)..add(1)..add(2)..add(1);
79 expect(multiSet.toList(), equals([1, 1, 1, 2, 2])); 77 expect(multiSet.toList(), equals([1, 1, 1, 2, 2]));
80 }); 78 });
81 } 79 }
OLDNEW
« no previous file with comments | « pkg/barback/test/logger_test.dart ('k') | pkg/barback/test/mutliset_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698