Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(491)

Unified Diff: tests/compiler/dart2js/value_range2_test.dart

Issue 11227042: isEven, isOdd, isNegative, isMaxValue, isMinValue, isInfinite, isPositive, isSingleValue. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase. Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tests/compiler/dart2js/value_range2_test.dart
diff --git a/tests/compiler/dart2js/value_range2_test.dart b/tests/compiler/dart2js/value_range2_test.dart
index ac232032bc06ddd969b17182eeb089cdf737d445..768a3f1ff4c2af6acd37d3aa6eb7cc02f4355cf2 100644
--- a/tests/compiler/dart2js/value_range2_test.dart
+++ b/tests/compiler/dart2js/value_range2_test.dart
@@ -46,16 +46,16 @@ checkSubRange(Range one, Range two, [lower, upper]) {
buildBound(one, two) {
// Create a bound just like our current implementation in dart2js does.
if (two is IntValue) {
- if (two.isNegative()) {
+ if (two.isNegative) {
return new AddValue(one, -two);
- } else if (two.isZero()) {
+ } else if (two.isZero) {
return one;
}
}
if (one is IntValue) {
- if (one.isNegative()) {
+ if (one.isNegative) {
return new SubtractValue(-two, -one);
- } else if (one.isZero()) {
+ } else if (one.isZero) {
return -two;
}
}

Powered by Google App Engine
This is Rietveld 408576698