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

Side by Side Diff: tests/lib/async/stream_min_max_test.dart

Issue 12212016: Remove Expect from core library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 stream_min_max_test; 5 library stream_min_max_test;
6 6
7 import "package:expect/expect.dart";
7 import 'dart:async'; 8 import 'dart:async';
8 import 'dart:isolate'; 9 import 'dart:isolate';
9 import '../../../pkg/unittest/lib/unittest.dart'; 10 import '../../../pkg/unittest/lib/unittest.dart';
10 import 'event_helper.dart'; 11 import 'event_helper.dart';
11 12
12 const int big = 1000000; 13 const int big = 1000000;
13 const double inf = double.INFINITY; 14 const double inf = double.INFINITY;
14 List intList = const [-0, 0, -1, 1, -10, 10, -big, big]; 15 List intList = const [-0, 0, -1, 1, -10, 10, -big, big];
15 List doubleList = const [-0.0, 0.0, -1.0, 1.0, -10.0, 10.0, -inf, inf]; 16 List doubleList = const [-0.0, 0.0, -1.0, 1.0, -10.0, 10.0, -inf, inf];
16 17
(...skipping 18 matching lines...) Expand all
35 testMinMax("set-int", intList.toSet(), -big, big); 36 testMinMax("set-int", intList.toSet(), -big, big);
36 37
37 testMinMax("const-double", doubleList, -inf, inf); 38 testMinMax("const-double", doubleList, -inf, inf);
38 testMinMax("list-double", doubleList.toList(), -inf, inf); 39 testMinMax("list-double", doubleList.toList(), -inf, inf);
39 testMinMax("set-double", doubleList.toSet(), -inf, inf); 40 testMinMax("set-double", doubleList.toSet(), -inf, inf);
40 41
41 int reverse(a, b) => b.compareTo(a); 42 int reverse(a, b) => b.compareTo(a);
42 testMinMax("rev-int", intList, big, -big, reverse); 43 testMinMax("rev-int", intList, big, -big, reverse);
43 testMinMax("rev-double", doubleList, inf, -inf, reverse); 44 testMinMax("rev-double", doubleList, inf, -inf, reverse);
44 } 45 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698