OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 analyzer.src.test.util.yaml_test; | 5 library analyzer.src.test.util.yaml_test; |
6 | 6 |
7 import 'package:analyzer/src/util/yaml.dart'; | 7 import 'package:analyzer/src/util/yaml.dart'; |
8 import 'package:unittest/unittest.dart'; | 8 import 'package:test/test.dart'; |
9 | 9 |
10 import '../../utils.dart'; | 10 import '../../utils.dart'; |
11 | 11 |
12 main() { | 12 main() { |
13 initializeTestEnvironment(); | 13 initializeTestEnvironment(); |
14 | 14 |
15 group('yaml', () { | 15 group('yaml', () { |
16 group('merge', () { | 16 group('merge', () { |
17 test('map', () { | 17 test('map', () { |
18 expect( | 18 expect( |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 expect(merge(1, 'foo'), 'foo'); | 95 expect(merge(1, 'foo'), 'foo'); |
96 expect(merge({'foo': 1}, 'foo'), 'foo'); | 96 expect(merge({'foo': 1}, 'foo'), 'foo'); |
97 }); | 97 }); |
98 }); | 98 }); |
99 }); | 99 }); |
100 } | 100 } |
101 | 101 |
102 final Merger merger = new Merger(); | 102 final Merger merger = new Merger(); |
103 | 103 |
104 Object merge(Object o1, Object o2) => merger.merge(o1, o2); | 104 Object merge(Object o1, Object o2) => merger.merge(o1, o2); |
OLD | NEW |