OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 import 'dart:async'; | 5 import 'dart:async'; |
6 import 'package:expect/expect.dart'; | |
7 import 'package:async_helper/async_helper.dart'; | 6 import 'package:async_helper/async_helper.dart'; |
8 import 'compiler_helper.dart'; | 7 import 'compiler_helper.dart'; |
9 | 8 |
10 const String MOD1 = r""" | 9 const String MOD1 = r""" |
11 foo(param) { | 10 foo(param) { |
12 var a = param ? 0xFFFFFFFF : 1; | 11 var a = param ? 0xFFFFFFFF : 1; |
13 return a % 2; | 12 return a % 2; |
14 // present: ' % 2' | 13 // present: ' % 2' |
15 // absent: '$mod' | 14 // absent: '$mod' |
16 } | 15 } |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 | 72 |
74 asyncTest(() => Future.wait([ | 73 asyncTest(() => Future.wait([ |
75 check(MOD1), | 74 check(MOD1), |
76 check(MOD2), | 75 check(MOD2), |
77 check(MOD3), | 76 check(MOD3), |
78 check(REM1), | 77 check(REM1), |
79 check(REM2), | 78 check(REM2), |
80 check(REM3), | 79 check(REM3), |
81 ])); | 80 ])); |
82 } | 81 } |
OLD | NEW |