blob: 1451edbcf0744c65095797aeef97967b618b2b83 [file] [log] [blame]
// Copyright (c) 2023, 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:test/test.dart';
import '../tool/machine.dart';
import 'util/test_utils.dart';
void main() {
group('machine output tests', () {
setUp(setUpSharedTestEnvironment);
test("ensure 'rules.json' is up to date", () async {
var rulesFile = machineJsonFile();
var onDisk = rulesFile.readAsStringSync();
var generated = await generateRulesJson();
expect(
generated,
onDisk,
reason: "'rules.json' is out of date. Regenerate by running "
'`dart tool/machine.dart -w`',
);
});
});
}