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

Unified Diff: test/list_test.dart

Issue 1773293002: Fix case-insensitive absolute listing. (Closed) Base URL: git@github.com:dart-lang/glob@master
Patch Set: Created 4 years, 9 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
« test/glob_test.dart ('K') | « test/glob_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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", [
« test/glob_test.dart ('K') | « test/glob_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698