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

Side by Side Diff: tests/corelib/iterable_min_max_test.dart

Issue 11778030: Test fixes for dartium (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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
« no previous file with comments | « no previous file | tests/corelib/json_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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 iterable_min_max_test;
6
5 import "dart:collection"; 7 import "dart:collection";
6 8
7 class C { 9 class C {
8 final x; 10 final x;
9 const C(this.x); 11 const C(this.x);
10 int get hashCode => x.hashCode; 12 int get hashCode => x.hashCode;
11 bool operator==(var other) => other is C && x == other.x; 13 bool operator==(var other) => other is C && x == other.x;
12 } 14 }
13 15
14 const inf = double.INFINITY; 16 const inf = double.INFINITY;
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 Expect.equals(const C(10), Collections.max(new Set.from(cList), compareC)); 71 Expect.equals(const C(10), Collections.max(new Set.from(cList), compareC));
70 72
71 bool checkedMode = false; 73 bool checkedMode = false;
72 assert(checkedMode = true); 74 assert(checkedMode = true);
73 Expect.throws(cList.min, (e) => checkedMode ? e is TypeError 75 Expect.throws(cList.min, (e) => checkedMode ? e is TypeError
74 : e is NoSuchMethodError); 76 : e is NoSuchMethodError);
75 Expect.throws(cList.max, (e) => checkedMode ? e is TypeError 77 Expect.throws(cList.max, (e) => checkedMode ? e is TypeError
76 : e is NoSuchMethodError); 78 : e is NoSuchMethodError);
77 } 79 }
78 80
OLDNEW
« no previous file with comments | « no previous file | tests/corelib/json_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698