Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // BSD-style license that can be found in the LICENSE file. | |
| 4 | |
| 5 main() { | |
| 6 Expect.stringEquals('1', NoSuchMethodError.safeToString(1)); | |
| 7 Expect.stringEquals('0.5', NoSuchMethodError.safeToString(0.5)); | |
| 8 Expect.stringEquals('"1"', NoSuchMethodError.safeToString("1")); | |
|
kasperl
2012/09/19 06:26:36
Add test for the escaping of " in strings?
ahe
2012/09/19 07:47:52
Done.
| |
| 9 Expect.stringEquals('null', NoSuchMethodError.safeToString(null)); | |
| 10 Expect.stringEquals('true', NoSuchMethodError.safeToString(true)); | |
| 11 Expect.stringEquals('false', NoSuchMethodError.safeToString(false)); | |
| 12 Expect.stringEquals("Instance of 'Object'", | |
| 13 NoSuchMethodError.safeToString(new Object())); | |
| 14 } | |
| OLD | NEW |