| OLD | NEW |
| 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"; | 5 import "package:expect/expect.dart"; |
| 6 | 6 |
| 7 main() { | 7 main() { |
| 8 Expect.stringEquals('1', Error.safeToString(1)); | 8 Expect.stringEquals('1', Error.safeToString(1)); |
| 9 Expect.stringEquals('0.5', Error.safeToString(0.5)); | 9 Expect.stringEquals('0.5', Error.safeToString(0.5)); |
| 10 Expect.stringEquals('"1"', Error.safeToString("1")); | 10 Expect.stringEquals('"1"', Error.safeToString("1")); |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 Expect.stringEquals('" "', Error.safeToString(" ")); | 26 Expect.stringEquals('" "', Error.safeToString(" ")); |
| 27 | 27 |
| 28 Expect.stringEquals('null', Error.safeToString(null)); | 28 Expect.stringEquals('null', Error.safeToString(null)); |
| 29 Expect.stringEquals('true', Error.safeToString(true)); | 29 Expect.stringEquals('true', Error.safeToString(true)); |
| 30 Expect.stringEquals('false', Error.safeToString(false)); | 30 Expect.stringEquals('false', Error.safeToString(false)); |
| 31 // The class name may be minified. | 31 // The class name may be minified. |
| 32 String className = "$Object"; | 32 String className = "$Object"; |
| 33 Expect.stringEquals( | 33 Expect.stringEquals( |
| 34 "Instance of '$className'", Error.safeToString(new Object())); | 34 "Instance of '$className'", Error.safeToString(new Object())); |
| 35 } | 35 } |
| OLD | NEW |