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

Unified Diff: pkg/analyzer/test/src/util/absolute_path_test.dart

Issue 1444983002: Optimize 'isWithin'. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month 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 | « pkg/analyzer/lib/src/util/absolute_path.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/src/util/absolute_path_test.dart
diff --git a/pkg/analyzer/test/src/util/absolute_path_test.dart b/pkg/analyzer/test/src/util/absolute_path_test.dart
index 04ae942f4f8fc46cbbb06cdfd932a260a54cd6cd..0f195c2ad98612c01b1056ff98519fd17049c469 100644
--- a/pkg/analyzer/test/src/util/absolute_path_test.dart
+++ b/pkg/analyzer/test/src/util/absolute_path_test.dart
@@ -50,8 +50,8 @@ class AbsolutePathContextPosixTest {
}
void test_suffix() {
- expect(context.suffix(r'/root/path/a/b.dart', r'/root/path'), r'a/b.dart');
- expect(context.suffix(r'/root/other.dart', r'/root/path'), isNull);
+ expect(context.suffix(r'/root/path', r'/root/path/a/b.dart'), r'a/b.dart');
+ expect(context.suffix(r'/root/path', r'/root/other.dart'), isNull);
}
}
@@ -90,7 +90,7 @@ class AbsolutePathContextWindowsTest {
void test_suffix() {
expect(
- context.suffix(r'C:\root\path\a\b.dart', r'C:\root\path'), r'a\b.dart');
- expect(context.suffix(r'C:\root\other.dart', r'C:\root\path'), isNull);
+ context.suffix(r'C:\root\path', r'C:\root\path\a\b.dart'), r'a\b.dart');
+ expect(context.suffix(r'C:\root\path', r'C:\root\other.dart'), isNull);
}
}
« no previous file with comments | « pkg/analyzer/lib/src/util/absolute_path.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698