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

Unified Diff: frog/tests/leg_only/src/Operator3Test.dart

Issue 10250002: test rename overhaul: step 5 - frog and leg tests (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
Index: frog/tests/leg_only/src/Operator3Test.dart
diff --git a/frog/tests/leg_only/src/Operator3Test.dart b/frog/tests/leg_only/src/Operator3Test.dart
deleted file mode 100644
index 00926e9899a18509fb308441a23103af72a6caf6..0000000000000000000000000000000000000000
--- a/frog/tests/leg_only/src/Operator3Test.dart
+++ /dev/null
@@ -1,58 +0,0 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-int zero() { return 0; }
-int one() { return 1; }
-int minus1() { return 0 - 1; }
-int two() { return 2; }
-int three() { return 3; }
-int five() { return 5; }
-int minus5() { return 0 - 5; }
-int ninetyNine() { return 99; }
-int four99() { return 499; }
-int four99times99() { return 499 * 99; }
-int four99times99plus1() { return 499 * 99 + 1; }
-
-void postPlusPlusTest() {
- var x = zero();
- var y = x++;
- Expect.equals(0, y);
- Expect.equals(1, x);
- Expect.equals(1, x++);
- Expect.equals(2, x);
-}
-
-void prePlusPlusTest() {
- var x = zero();
- var y = ++x;
- Expect.equals(1, x);
- Expect.equals(1, y);
- Expect.equals(2, ++x);
- Expect.equals(2, ++y);
-}
-
-void postMinusMinusTest() {
- var x = four99();
- var y = x--;
- Expect.equals(499, y);
- Expect.equals(498, x);
- Expect.equals(498, x--);
- Expect.equals(497, x);
-}
-
-void preMinusMinusTest() {
- var x = four99();
- var y = --x;
- Expect.equals(498, y);
- Expect.equals(498, x);
- Expect.equals(497, --x);
- Expect.equals(497, x);
-}
-
-void main() {
- postPlusPlusTest();
- prePlusPlusTest();
- postMinusMinusTest();
- preMinusMinusTest();
-}

Powered by Google App Engine
This is Rietveld 408576698