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; | |
6 | |
7 import 'package:test/test.dart'; | 5 import 'package:test/test.dart'; |
8 import 'package:yaml/yaml.dart'; | 6 import 'package:yaml/yaml.dart'; |
9 | 7 |
10 import 'utils.dart'; | 8 import 'utils.dart'; |
11 | 9 |
12 main() { | 10 main() { |
13 var infinity = double.parse("Infinity"); | 11 var infinity = double.parse("Infinity"); |
14 var nan = double.parse("NaN"); | 12 var nan = double.parse("NaN"); |
15 | 13 |
16 group('has a friendly error message for', () { | 14 group('has a friendly error message for', () { |
(...skipping 1859 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1876 A null: null | 1874 A null: null |
1877 Also a null: # Empty | 1875 Also a null: # Empty |
1878 Not a null: "" | 1876 Not a null: "" |
1879 Booleans: [ true, True, false, FALSE ] | 1877 Booleans: [ true, True, false, FALSE ] |
1880 Integers: [ 0, 0o7, 0x3A, -19 ] | 1878 Integers: [ 0, 0o7, 0x3A, -19 ] |
1881 Floats: [ 0., -0.0, .5, +12e03, -2E+05 ] | 1879 Floats: [ 0., -0.0, .5, +12e03, -2E+05 ] |
1882 Also floats: [ .inf, -.Inf, +.INF, .NAN ]'''); | 1880 Also floats: [ .inf, -.Inf, +.INF, .NAN ]'''); |
1883 }); | 1881 }); |
1884 }); | 1882 }); |
1885 } | 1883 } |
OLD | NEW |