Index: test/list_test.dart |
diff --git a/test/list_test.dart b/test/list_test.dart |
index 948af08064c3ed1727796cef4a9e8102697fd9f7..d59e273d0240a3d3cbb0755573a9a5480b0435a7 100644 |
--- a/test/list_test.dart |
+++ b/test/list_test.dart |
@@ -275,6 +275,19 @@ void main() { |
]))); |
}); |
+ // Regression test for #4. |
+ test("lists an absolute case-insensitive glob", () { |
+ expect(schedule(() { |
+ var pattern = separatorToForwardSlash( |
+ p.absolute(p.join(sandbox, 'foo/Baz/**'))); |
+ |
+ return list(pattern, caseSensitive: false); |
+ }), completion(unorderedEquals([ |
+ p.join("foo", "baz", "bang"), |
+ p.join("foo", "baz", "qux") |
+ ]))); |
+ }); |
+ |
test("lists a subdirectory that sometimes exists", () { |
d.dir("top", [ |
d.dir("dir1", [ |