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 recursive_test_data; | 5 library recursive_test_data; |
6 | 6 |
7 import 'package:unittest/unittest.dart'; | 7 import 'package:unittest/unittest.dart'; |
| 8 import 'package:web_ui/observe.dart'; |
8 | 9 |
9 int len = 0; | 10 @observable int len = 0; |
10 | 11 |
11 String check(pos) { | 12 String check(pos) { |
12 expect(pos, lessThanOrEqualTo(len)); | 13 expect(pos, lessThanOrEqualTo(len)); |
13 return '$pos'; | 14 return '$pos'; |
14 } | 15 } |
15 | 16 |
OLD | NEW |