Index: tests/language/lazy_static7_test.dart |
diff --git a/tests/language/call_function_apply_test.dart b/tests/language/lazy_static7_test.dart |
similarity index 61% |
copy from tests/language/call_function_apply_test.dart |
copy to tests/language/lazy_static7_test.dart |
index 935cfaf832aff599478847534822d651a4ddcd51..ff74912259a11aa65a3e9499f4126300a07b489d 100644 |
--- a/tests/language/call_function_apply_test.dart |
+++ b/tests/language/lazy_static7_test.dart |
@@ -4,12 +4,13 @@ |
import "package:expect/expect.dart"; |
-class A { |
- call({a: 42}) { |
- return 499 + a; |
- } |
-} |
+var sideEffect = 0; |
+var x = (() { sideEffect++; return 499; })(); |
main() { |
- Expect.equals(497, Function.apply(new A(), [], {#a: -2})); |
+ if (new DateTime.now().day >= -1) { |
+ x = 42; |
+ } |
+ Expect.equals(42, x); |
+ Expect.equals(0, sideEffect); |
} |