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

Side by Side Diff: tests/language/operator_index_evaluation_order_test.dart

Issue 12212016: Remove Expect from core library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add deprecation comment for ExpectException and revert one test. Created 7 years, 8 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) 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 import "package:expect/expect.dart";
6
5 class B { 7 class B {
6 int value; 8 int value;
7 List trace; 9 List trace;
8 B(this.trace) : value = 100; 10 B(this.trace) : value = 100;
9 operator [](index) { 11 operator [](index) {
10 trace.add(-3); 12 trace.add(-3);
11 trace.add(index); 13 trace.add(index);
12 trace.add(this.value); 14 trace.add(this.value);
13 this.value = this.value + 1; 15 this.value = this.value + 1;
14 return this; 16 return this;
(...skipping 24 matching lines...) Expand all
39 trace.add(-2); 41 trace.add(-2);
40 return 42; 42 return 42;
41 } 43 }
42 44
43 main() { 45 main() {
44 List trace = new List(); 46 List trace = new List();
45 getB(trace)[getIndex(trace)] += 37; 47 getB(trace)[getIndex(trace)] += 37;
46 48
47 Expect.listEquals([-1, -2, -3, 42, 100, -4, 101, 37, -5, 42, 102], trace); 49 Expect.listEquals([-1, -2, -3, 42, 100, -4, 101, 37, -5, 42, 102], trace);
48 } 50 }
OLDNEW
« no previous file with comments | « tests/language/operator6_test.dart ('k') | tests/language/operator_negate_and_method_negate_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698