Index: tests/standalone/io/directory_fuzz_test.dart |
diff --git a/tests/standalone/io/directory_fuzz_test.dart b/tests/standalone/io/directory_fuzz_test.dart |
index dda9fe3f0e80c92694ae208f4e98386923787bd5..fb66b944036757143d51e49452898b0f24b55a3a 100644 |
--- a/tests/standalone/io/directory_fuzz_test.dart |
+++ b/tests/standalone/io/directory_fuzz_test.dart |
@@ -8,6 +8,7 @@ |
import 'dart:async'; |
import 'dart:io'; |
import 'dart:isolate'; |
+import "package:expect/expect.dart"; |
import 'fuzz_support.dart'; |
@@ -39,6 +40,11 @@ fuzzAsyncMethods() { |
var port = new ReceivePort(); |
var futures = []; |
typeMapping.forEach((k, v) { |
+ if (v is! String) { |
+ Expect.throws(() => new Directory(v), |
+ (e) => e is ArgumentError); |
+ return; |
+ } |
var d = new Directory(v); |
futures.add(doItAsync(d.exists)); |
futures.add(doItAsync(d.create)); |