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

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

Issue 12212016: Remove Expect from core library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated latest tests. Created 7 years, 9 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 // Tests that lhs of a compound assignement is executed only once. 4 // Tests that lhs of a compound assignement is executed only once.
5 5
6 import "package:expect/expect.dart";
7
6 8
7 class Indexed { 9 class Indexed {
8 Indexed() : _f = new List(10), count = 0 { 10 Indexed() : _f = new List(10), count = 0 {
9 _f[0] = 100; 11 _f[0] = 100;
10 _f[1] = 200; 12 _f[1] = 200;
11 } 13 }
12 operator [](i) { 14 operator [](i) {
13 count++; 15 count++;
14 return _f; 16 return _f;
15 } 17 }
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 testIndexed(); 81 testIndexed();
80 testIndexedMore(); 82 testIndexedMore();
81 testIndexedMoreMore(); 83 testIndexedMoreMore();
82 } 84 }
83 } 85 }
84 } 86 }
85 87
86 main() { 88 main() {
87 CompoundAssignmentOperatorTest.testMain(); 89 CompoundAssignmentOperatorTest.testMain();
88 } 90 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698