| 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 library analyzer.test.src.dart.constant.value_test; | 5 library analyzer.test.src.dart.constant.value_test; |
| 6 | 6 |
| 7 import 'package:analyzer/src/generated/constant.dart'; | 7 import 'package:analyzer/src/generated/constant.dart'; |
| 8 import 'package:analyzer/src/generated/resolver.dart'; | 8 import 'package:analyzer/src/generated/resolver.dart'; |
| 9 import 'package:analyzer/src/generated/testing/test_type_provider.dart'; | 9 import 'package:analyzer/src/generated/testing/test_type_provider.dart'; |
| 10 import 'package:test_reflective_loader/test_reflective_loader.dart'; |
| 10 import 'package:unittest/unittest.dart'; | 11 import 'package:unittest/unittest.dart'; |
| 11 | 12 |
| 12 import '../../../generated/test_support.dart'; | 13 import '../../../generated/test_support.dart'; |
| 13 import '../../../reflective_tests.dart'; | |
| 14 import '../../../utils.dart'; | 14 import '../../../utils.dart'; |
| 15 | 15 |
| 16 main() { | 16 main() { |
| 17 initializeTestEnvironment(); | 17 initializeTestEnvironment(); |
| 18 runReflectiveTests(DartObjectImplTest); | 18 defineReflectiveTests(DartObjectImplTest); |
| 19 } | 19 } |
| 20 | 20 |
| 21 const int LONG_MAX_VALUE = 0x7fffffffffffffff; | 21 const int LONG_MAX_VALUE = 0x7fffffffffffffff; |
| 22 | 22 |
| 23 @reflectiveTest | 23 @reflectiveTest |
| 24 class DartObjectImplTest extends EngineTestCase { | 24 class DartObjectImplTest extends EngineTestCase { |
| 25 TypeProvider _typeProvider = new TestTypeProvider(); | 25 TypeProvider _typeProvider = new TestTypeProvider(); |
| 26 | 26 |
| 27 void test_add_knownDouble_knownDouble() { | 27 void test_add_knownDouble_knownDouble() { |
| 28 _assertAdd(_doubleValue(3.0), _doubleValue(1.0), _doubleValue(2.0)); | 28 _assertAdd(_doubleValue(3.0), _doubleValue(1.0), _doubleValue(2.0)); |
| (...skipping 1991 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2020 } else { | 2020 } else { |
| 2021 return new DartObjectImpl( | 2021 return new DartObjectImpl( |
| 2022 _typeProvider.stringType, new StringState(value)); | 2022 _typeProvider.stringType, new StringState(value)); |
| 2023 } | 2023 } |
| 2024 } | 2024 } |
| 2025 | 2025 |
| 2026 DartObjectImpl _symbolValue(String value) { | 2026 DartObjectImpl _symbolValue(String value) { |
| 2027 return new DartObjectImpl(_typeProvider.symbolType, new SymbolState(value)); | 2027 return new DartObjectImpl(_typeProvider.symbolType, new SymbolState(value)); |
| 2028 } | 2028 } |
| 2029 } | 2029 } |
| OLD | NEW |