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 test.src.util.lru_map; | 5 library analyzer.test.src.util.lru_map_test; |
6 | 6 |
7 import 'package:analyzer/src/util/lru_map.dart'; | 7 import 'package:analyzer/src/util/lru_map.dart'; |
8 import 'package:unittest/unittest.dart'; | 8 import 'package:unittest/unittest.dart'; |
9 | 9 |
10 import '../../reflective_tests.dart'; | 10 import '../../reflective_tests.dart'; |
11 import '../../utils.dart'; | 11 import '../../utils.dart'; |
12 | 12 |
13 main() { | 13 main() { |
14 initializeTestEnvironment(); | 14 initializeTestEnvironment(); |
15 runReflectiveTests(_LRUCacheTest); | 15 runReflectiveTests(_LRUCacheTest); |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 cache.put(3, 'C'); | 87 cache.put(3, 'C'); |
88 // remove | 88 // remove |
89 cache.remove(1); | 89 cache.remove(1); |
90 cache.remove(3); | 90 cache.remove(3); |
91 // check | 91 // check |
92 expect(cache.get(1), isNull); | 92 expect(cache.get(1), isNull); |
93 expect(cache.get(2), 'B'); | 93 expect(cache.get(2), 'B'); |
94 expect(cache.get(3), isNull); | 94 expect(cache.get(3), isNull); |
95 } | 95 } |
96 } | 96 } |
OLD | NEW |