Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Unified Diff: pkg/analyzer/test/options_test.dart

Issue 633803002: Check parameter types when evaluating constants. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/analyzer/test/options_test.dart
diff --git a/pkg/analyzer/test/options_test.dart b/pkg/analyzer/test/options_test.dart
index bb2ba2a596855796a8df5098af421bc3d19641e7..f335dee2cd34bfbc7ce82cc6c1bc21b52b4abf06 100644
--- a/pkg/analyzer/test/options_test.dart
+++ b/pkg/analyzer/test/options_test.dart
@@ -20,6 +20,7 @@ main() {
expect(options.displayVersion, isFalse);
expect(options.enableAsync, isFalse);
expect(options.enableEnum, isFalse);
+ expect(options.enableTypeChecks, isFalse);
expect(options.ignoreUnrecognizedFlags, isFalse);
expect(options.log, isFalse);
expect(options.machineFormat, isFalse);
@@ -58,6 +59,12 @@ main() {
expect(options.enableEnum, isTrue);
});
+ test('enable type checks', () {
+ CommandLineOptions options = CommandLineOptions
+ .parse(['--dart-sdk', '.', '--enable_type_cheks', 'foo.dart']);
+ expect(options.enableTypeChecks, isTrue);
+ });
+
test('log', () {
CommandLineOptions options = CommandLineOptions
.parse(['--dart-sdk', '.', '--log', 'foo.dart']);

Powered by Google App Engine
This is Rietveld 408576698