analyzer: add triple-shift experiment to all tests
Change-Id: I560f82b239d78b748f6e2298a291d71cd2c831a0 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/184840 Commit-Queue: Samuel Rawlins <srawlins@google.com> Reviewed-by: Konstantin Shcheglov <scheglov@google.com> Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
This commit is contained in:
committed by
commit-bot@chromium.org
parent
3e83400e0f
commit
89f563c4d3
@@ -5,7 +5,6 @@
|
||||
@deprecated
|
||||
library analyzer.test.constant_test;
|
||||
|
||||
import 'package:analyzer/src/dart/analysis/experiments.dart';
|
||||
import 'package:analyzer/src/dart/element/element.dart';
|
||||
import 'package:analyzer/src/generated/constant.dart';
|
||||
import 'package:test/test.dart';
|
||||
@@ -21,18 +20,6 @@ main() {
|
||||
|
||||
@reflectiveTest
|
||||
class ConstantEvaluatorTest extends PubPackageResolutionTest {
|
||||
@override
|
||||
void setUp() {
|
||||
super.setUp();
|
||||
writeTestPackageAnalysisOptionsFile(
|
||||
AnalysisOptionsFileConfig(
|
||||
experiments: [
|
||||
EnableString.triple_shift,
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
test_bitAnd_int_int() async {
|
||||
await _assertValueInt(74 & 42, "74 & 42");
|
||||
}
|
||||
|
||||
@@ -263,7 +263,10 @@ class PubPackageResolutionTest extends ContextResolutionTest {
|
||||
super.setUp();
|
||||
writeTestPackageAnalysisOptionsFile(
|
||||
AnalysisOptionsFileConfig(
|
||||
experiments: [EnableString.nonfunction_type_aliases],
|
||||
experiments: [
|
||||
EnableString.nonfunction_type_aliases,
|
||||
EnableString.triple_shift,
|
||||
],
|
||||
),
|
||||
);
|
||||
writeTestPackageConfig(
|
||||
|
||||
Reference in New Issue
Block a user