Index: tests/standalone/assert_test.dart |
diff --git a/tests/standalone/assert_test.dart b/tests/standalone/assert_test.dart |
deleted file mode 100644 |
index 17f9e314a5b467209cb8aa6b5e2e5b7b7f55cd98..0000000000000000000000000000000000000000 |
--- a/tests/standalone/assert_test.dart |
+++ /dev/null |
@@ -1,41 +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. |
-// VMOptions=--enable_asserts |
- |
-// Dart test program testing assert statements. |
- |
-import "package:expect/expect.dart"; |
- |
-class AssertTest { |
- static test() { |
- try { |
- assert(false); |
- Expect.fail("Assertion 'false' didn't fail."); |
- } on AssertionError catch (error) { |
- Expect.isTrue(error.toString().contains("'false'")); |
- Expect.isTrue( |
- error.stackTrace.toString().contains("assert_test.dart:13:14")); |
- } |
- } |
- |
- static testClosure() { |
- try { |
- assert(() => false); |
- Expect.fail("Assertion '() => false' didn't fail."); |
- } on AssertionError catch (error) { |
- Expect.isTrue(error.toString().contains("'() => false'")); |
- Expect.isTrue( |
- error.stackTrace.toString().contains("assert_test.dart:24:14")); |
- } |
- } |
- |
- static testMain() { |
- test(); |
- testClosure(); |
- } |
-} |
- |
-main() { |
- AssertTest.testMain(); |
-} |