| 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('dart:math'); |     7 #import('dart:math'); | 
|     8  |     8  | 
|     9 #import('../../../pkg/unittest/unittest.dart'); |     9 #import('../../../pkg/unittest/unittest.dart'); | 
|    10 #import('../../pub/yaml/yaml.dart'); |    10 #import('../../pub/yaml/yaml.dart'); | 
| (...skipping 1068 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1079     //   var aliasList = doc['alias']; |  1079     //   var aliasList = doc['alias']; | 
|  1080     //   Expect.isTrue(anchorList === aliasList); |  1080     //   Expect.isTrue(anchorList === aliasList); | 
|  1081     //   anchorList.add('d'); |  1081     //   anchorList.add('d'); | 
|  1082     //   Expect.listEquals(['a', 'b', 'c', 'd'], aliasList); |  1082     //   Expect.listEquals(['a', 'b', 'c', 'd'], aliasList); | 
|  1083  |  1083  | 
|  1084     //   doc = loadYaml(cleanUpLiteral( |  1084     //   doc = loadYaml(cleanUpLiteral( | 
|  1085     //     """ |  1085     //     """ | 
|  1086     //     ? &anchor [a, b, c] |  1086     //     ? &anchor [a, b, c] | 
|  1087     //     : ? *anchor |  1087     //     : ? *anchor | 
|  1088     //       : bar"""); |  1088     //       : bar"""); | 
|  1089     //   anchorList = doc.getKeys()[0]; |  1089     //   anchorList = doc.keys[0]; | 
|  1090     //   aliasList = doc[['a', 'b', 'c']].getKeys()[0]; |  1090     //   aliasList = doc[['a', 'b', 'c']].keys[0]; | 
|  1091     //   Expect.isTrue(anchorList === aliasList); |  1091     //   Expect.isTrue(anchorList === aliasList); | 
|  1092     //   anchorList.add('d'); |  1092     //   anchorList.add('d'); | 
|  1093     //   Expect.listEquals(['a', 'b', 'c', 'd'], aliasList); |  1093     //   Expect.listEquals(['a', 'b', 'c', 'd'], aliasList); | 
|  1094     // }); |  1094     // }); | 
|  1095  |  1095  | 
|  1096     // test('[Example 7.1]', () { |  1096     // test('[Example 7.1]', () { | 
|  1097     //   expectYamlLoads({ |  1097     //   expectYamlLoads({ | 
|  1098     //     "First occurence": "Foo", |  1098     //     "First occurence": "Foo", | 
|  1099     //     "Second occurence": "Foo", |  1099     //     "Second occurence": "Foo", | 
|  1100     //     "Override anchor": "Bar", |  1100     //     "Override anchor": "Bar", | 
| (...skipping 773 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1874         A null: null |  1874         A null: null | 
|  1875         Also a null: # Empty |  1875         Also a null: # Empty | 
|  1876         Not a null: "" |  1876         Not a null: "" | 
|  1877         Booleans: [ true, True, false, FALSE ] |  1877         Booleans: [ true, True, false, FALSE ] | 
|  1878         Integers: [ 0, 0o7, 0x3A, -19 ] |  1878         Integers: [ 0, 0o7, 0x3A, -19 ] | 
|  1879         Floats: [ 0., -0.0, .5, +12e03, -2E+05 ] |  1879         Floats: [ 0., -0.0, .5, +12e03, -2E+05 ] | 
|  1880         Also floats: [ .inf, -.Inf, +.INF, .NAN ]'''); |  1880         Also floats: [ .inf, -.Inf, +.INF, .NAN ]'''); | 
|  1881     }); |  1881     }); | 
|  1882   }); |  1882   }); | 
|  1883 } |  1883 } | 
| OLD | NEW |