Index: tests/language_2/assertion_initializer_test.dart |
diff --git a/tests/language/assertion_initializer_test.dart b/tests/language_2/assertion_initializer_test.dart |
similarity index 95% |
rename from tests/language/assertion_initializer_test.dart |
rename to tests/language_2/assertion_initializer_test.dart |
index 45369802b96bc1545aad154329cfb6076e259fdf..a6341885e17ca5f992accfc0917a7a40b8085efd 100644 |
--- a/tests/language/assertion_initializer_test.dart |
+++ b/tests/language_2/assertion_initializer_test.dart |
@@ -1,4 +1,4 @@ |
-// Copyright (c) 201, the Dart project authors. Please see the AUTHORS file |
+// Copyright (c) 2017, 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. |
// VMOptions=--assert_initializer |
@@ -85,10 +85,10 @@ main() { |
} |
void test(int x, int y) { |
- bool checkedMode = false; |
- assert(checkedMode = true); |
+ bool assertionsEnabled = false; |
+ assert(assertionsEnabled = true); |
- bool Function(C Function()) doTest = (checkedMode && x >= y) |
+ bool Function(C Function()) doTest = (assertionsEnabled && x >= y) |
? (f) { Expect.throws(f, (e) => e is AssertionError); } |
: (f) { Expect.equals(x, f().x); }; |