6d5543e01b
experimental_features.yaml was updated in https://dart-review.googlesource.com/c/sdk/+/219789 but unfortunately the analyzer code wasn't regenerated. This CL updates the generated files and adds capability of checking consistency to the generator. A check of consistency is add next to the check for consistency used in presubmit for the CFE counterpart. Was: https://dart-review.googlesource.com/c/sdk/+/224520 Change-Id: I59be4335ee81743aca5dc48eaa0df278d64d3692 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/229020 Reviewed-by: Samuel Rawlins <srawlins@google.com> Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
19 lines
577 B
Dart
19 lines
577 B
Dart
// Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
import 'package:dartdev/src/experiments.dart';
|
|
import 'package:test/test.dart';
|
|
|
|
void main() {
|
|
group('experiments', () {
|
|
test('experimentalFeatures', () {
|
|
expect(experimentalFeatures, isNotEmpty);
|
|
expect(
|
|
experimentalFeatures.map((experiment) => experiment.enableString),
|
|
contains('super-parameters'),
|
|
);
|
|
});
|
|
});
|
|
}
|