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

Unified Diff: pkg/analyzer/test/generated/all_the_rest_test.dart

Issue 1027453003: Fix constant evaluation of division. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 9 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: pkg/analyzer/test/generated/all_the_rest_test.dart
diff --git a/pkg/analyzer/test/generated/all_the_rest_test.dart b/pkg/analyzer/test/generated/all_the_rest_test.dart
index 9c53522b5f27471013e6c27f13fd16a39df129fb..89c1bad79fc35cfc51e48fca2f6b33c62c4513e1 100644
--- a/pkg/analyzer/test/generated/all_the_rest_test.dart
+++ b/pkg/analyzer/test/generated/all_the_rest_test.dart
@@ -589,7 +589,7 @@ class ConstantEvaluatorTest extends ResolverTestCase {
}
void test_divide_int_int() {
- _assertValue3(1, "3 / 2");
+ _assertValue2(1.5, "3 / 2");
}
void test_divide_int_int_byZero() {
EvaluationResult result = _getExpressionValue("3 / 0");
@@ -2576,7 +2576,7 @@ class DartObjectImplTest extends EngineTestCase {
}
void test_divide_knownInt_knownInt() {
- _assertDivide(_intValue(3), _intValue(6), _intValue(2));
+ _assertDivide(_doubleValue(3.0), _intValue(6), _intValue(2));
}
void test_divide_knownInt_knownString() {
@@ -2588,7 +2588,7 @@ class DartObjectImplTest extends EngineTestCase {
}
void test_divide_knownInt_unknownInt() {
- _assertDivide(_intValue(null), _intValue(6), _intValue(null));
+ _assertDivide(_doubleValue(null), _intValue(6), _intValue(null));
}
void test_divide_knownString_knownInt() {
@@ -2608,7 +2608,7 @@ class DartObjectImplTest extends EngineTestCase {
}
void test_divide_unknownInt_knownInt() {
- _assertDivide(_intValue(null), _intValue(null), _intValue(2));
+ _assertDivide(_doubleValue(null), _intValue(null), _intValue(2));
}
void test_equalEqual_bool_false() {
« pkg/analyzer/lib/src/generated/constant.dart ('K') | « pkg/analyzer/lib/src/generated/constant.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698