| 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('../../lib/unittest/unittest.dart'); | 7 #import('../../../lib/unittest/unittest.dart'); |
| 8 #import('../../utils/yaml/yaml.dart'); | 8 #import('../../pub/yaml/yaml.dart'); |
| 9 #import('../../utils/yaml/deep_equals.dart'); | 9 #import('../../pub/yaml/deep_equals.dart'); |
| 10 #import('test_utils.dart'); | 10 #import('../../../tests/utils/test_utils.dart'); |
| 11 | 11 |
| 12 /** Constructs a new yaml.YamlMap, optionally from a normal Map. */ | 12 /** Constructs a new yaml.YamlMap, optionally from a normal Map. */ |
| 13 Map yamlMap([Map from]) => | 13 Map yamlMap([Map from]) => |
| 14 from == null ? new YamlMap() : new YamlMap.from(from); | 14 from == null ? new YamlMap() : new YamlMap.from(from); |
| 15 | 15 |
| 16 /** | 16 /** |
| 17 * Asserts that a string containing a single YAML document produces a given | 17 * Asserts that a string containing a single YAML document produces a given |
| 18 * value when loaded. | 18 * value when loaded. |
| 19 */ | 19 */ |
| 20 expectYamlLoads(expected, String source) { | 20 expectYamlLoads(expected, String source) { |
| (...skipping 1796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1817 // A null: null | 1817 // A null: null |
| 1818 // Also a null: # Empty | 1818 // Also a null: # Empty |
| 1819 // Not a null: "" | 1819 // Not a null: "" |
| 1820 // Booleans: [ true, True, false, FALSE ] | 1820 // Booleans: [ true, True, false, FALSE ] |
| 1821 // Integers: [ 0, 0o7, 0x3A, -19 ] | 1821 // Integers: [ 0, 0o7, 0x3A, -19 ] |
| 1822 // Floats: [ 0., -0.0, .5, +12e03, -2E+05 ] | 1822 // Floats: [ 0., -0.0, .5, +12e03, -2E+05 ] |
| 1823 // Also floats: [ .inf, -.Inf, +.INF, .NAN ]'''); | 1823 // Also floats: [ .inf, -.Inf, +.INF, .NAN ]'''); |
| 1824 // }); | 1824 // }); |
| 1825 }); | 1825 }); |
| 1826 } | 1826 } |
| OLD | NEW |