| 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 library yaml.test; | 5 library yaml.test; |
| 6 | 6 |
| 7 import 'package:unittest/unittest.dart'; | 7 import 'package:test/test.dart'; |
| 8 import 'package:yaml/yaml.dart'; | 8 import 'package:yaml/yaml.dart'; |
| 9 | 9 |
| 10 import 'utils.dart'; | 10 import 'utils.dart'; |
| 11 | 11 |
| 12 main() { | 12 main() { |
| 13 var infinity = double.parse("Infinity"); | 13 var infinity = double.parse("Infinity"); |
| 14 var nan = double.parse("NaN"); | 14 var nan = double.parse("NaN"); |
| 15 | 15 |
| 16 group('has a friendly error message for', () { | 16 group('has a friendly error message for', () { |
| 17 var tabError = predicate((e) => | 17 var tabError = predicate((e) => |
| (...skipping 1821 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1839 A null: null | 1839 A null: null |
| 1840 Also a null: # Empty | 1840 Also a null: # Empty |
| 1841 Not a null: "" | 1841 Not a null: "" |
| 1842 Booleans: [ true, True, false, FALSE ] | 1842 Booleans: [ true, True, false, FALSE ] |
| 1843 Integers: [ 0, 0o7, 0x3A, -19 ] | 1843 Integers: [ 0, 0o7, 0x3A, -19 ] |
| 1844 Floats: [ 0., -0.0, .5, +12e03, -2E+05 ] | 1844 Floats: [ 0., -0.0, .5, +12e03, -2E+05 ] |
| 1845 Also floats: [ .inf, -.Inf, +.INF, .NAN ]'''); | 1845 Also floats: [ .inf, -.Inf, +.INF, .NAN ]'''); |
| 1846 }); | 1846 }); |
| 1847 }); | 1847 }); |
| 1848 } | 1848 } |
| OLD | NEW |