Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(442)

Side by Side Diff: pkg/yaml/test/yaml_test.dart

Issue 14103026: Restructure the yaml package. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pkg/yaml/lib/yaml_map.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 // TODO(rnystrom): rewrite tests so that they don't need "Expect". 7 // TODO(rnystrom): rewrite tests so that they don't need "Expect".
8 import "package:expect/expect.dart"; 8 import "package:expect/expect.dart";
9 import 'package:unittest/unittest.dart'; 9 import 'package:unittest/unittest.dart';
10 import 'package:yaml/yaml.dart'; 10 import 'package:yaml/yaml.dart';
11 import 'package:yaml/deep_equals.dart'; 11 import 'package:yaml/src/deep_equals.dart';
12 // TODO(jmesserly): we should not be reaching outside the YAML package 12 // TODO(jmesserly): we should not be reaching outside the YAML package
13 // The http package has a similar problem. 13 // The http package has a similar problem.
14 import '../../../tests/utils/test_utils.dart'; 14 import '../../../tests/utils/test_utils.dart';
15 15
16 /// Constructs a new yaml.YamlMap, optionally from a normal Map. 16 /// Constructs a new yaml.YamlMap, optionally from a normal Map.
17 Map yamlMap([Map from]) => 17 Map yamlMap([Map from]) =>
18 from == null ? new YamlMap() : new YamlMap.from(from); 18 from == null ? new YamlMap() : new YamlMap.from(from);
19 19
20 /// Asserts that a string containing a single YAML document produces a given 20 /// Asserts that a string containing a single YAML document produces a given
21 /// value when loaded. 21 /// value when loaded.
(...skipping 1849 matching lines...) Expand 10 before | Expand all | Expand 10 after
1871 A null: null 1871 A null: null
1872 Also a null: # Empty 1872 Also a null: # Empty
1873 Not a null: "" 1873 Not a null: ""
1874 Booleans: [ true, True, false, FALSE ] 1874 Booleans: [ true, True, false, FALSE ]
1875 Integers: [ 0, 0o7, 0x3A, -19 ] 1875 Integers: [ 0, 0o7, 0x3A, -19 ]
1876 Floats: [ 0., -0.0, .5, +12e03, -2E+05 ] 1876 Floats: [ 0., -0.0, .5, +12e03, -2E+05 ]
1877 Also floats: [ .inf, -.Inf, +.INF, .NAN ]'''); 1877 Also floats: [ .inf, -.Inf, +.INF, .NAN ]''');
1878 }); 1878 });
1879 }); 1879 });
1880 } 1880 }
OLDNEW
« no previous file with comments | « pkg/yaml/lib/yaml_map.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698