| Index: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/constant/ConstantEvaluatorTest.java
|
| diff --git a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/constant/ConstantEvaluatorTest.java b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/constant/ConstantEvaluatorTest.java
|
| index 7ca4ad0c85e2321bc601119dc4414ab94816fa42..dba7a124af50c0f3d272ad1c22f17248d9a7e0d8 100644
|
| --- a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/constant/ConstantEvaluatorTest.java
|
| +++ b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/constant/ConstantEvaluatorTest.java
|
| @@ -184,7 +184,10 @@ public class ConstantEvaluatorTest extends ResolverTestCase {
|
| }
|
|
|
| public void test_leftShift_int_int() throws Exception {
|
| - assertValue(64L, "16 << 2");
|
| + EvaluationResult result = getExpressionValue("16 << 2");
|
| + assertTrue(result.isValid());
|
| + // we cannot always evaluate "shift left" because of possible overflow
|
| + assertEquals(0, result.getValue());
|
| }
|
|
|
| public void test_lessThan_int_int() throws Exception {
|
|
|