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

Unified Diff: packages/glob/test/glob_test.dart

Issue 2989763002: Update charted to 0.4.8 and roll (Closed)
Patch Set: Removed Cutch from list of reviewers Created 3 years, 5 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
« no previous file with comments | « packages/glob/pubspec.yaml ('k') | packages/glob/test/list_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: packages/glob/test/glob_test.dart
diff --git a/packages/glob/test/glob_test.dart b/packages/glob/test/glob_test.dart
index a742f20fd9ca2abc024ddfd477859ae9c8544696..4cbb453543a43807d35edd4882e1fb9be984d237 100644
--- a/packages/glob/test/glob_test.dart
+++ b/packages/glob/test/glob_test.dart
@@ -3,6 +3,7 @@
// BSD-style license that can be found in the LICENSE file.
import 'package:glob/glob.dart';
+import 'package:path/path.dart' as p;
import 'package:test/test.dart';
void main() {
@@ -91,4 +92,20 @@ void main() {
expect(() => match.groups([1]), throwsRangeError);
});
});
+
+ test("globs are case-sensitive by default for Posix and URL contexts", () {
+ expect("foo", contains(new Glob("foo", context: p.posix)));
+ expect("FOO", isNot(contains(new Glob("foo", context: p.posix))));
+ expect("foo", isNot(contains(new Glob("FOO", context: p.posix))));
+
+ expect("foo", contains(new Glob("foo", context: p.url)));
+ expect("FOO", isNot(contains(new Glob("foo", context: p.url))));
+ expect("foo", isNot(contains(new Glob("FOO", context: p.url))));
+ });
+
+ test("globs are case-insensitive by default for Windows contexts", () {
+ expect("foo", contains(new Glob("foo", context: p.windows)));
+ expect("FOO", contains(new Glob("foo", context: p.windows)));
+ expect("foo", contains(new Glob("FOO", context: p.windows)));
+ });
}
« no previous file with comments | « packages/glob/pubspec.yaml ('k') | packages/glob/test/list_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698