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

Unified Diff: utils/tests/pub/path/path_posix_test.dart

Issue 11557008: Make pub publish more user friendly: (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge in path changes. Created 8 years 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 | « utils/tests/pub/oauth2_test.dart ('k') | utils/tests/pub/path/path_windows_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/tests/pub/path/path_posix_test.dart
diff --git a/utils/tests/pub/path/path_posix_test.dart b/utils/tests/pub/path/path_posix_test.dart
index 085471be000b713cac532ac2f2efa0287dc2e5c7..60ed65afa761ea698ba19e883dede691423529e4 100644
--- a/utils/tests/pub/path/path_posix_test.dart
+++ b/utils/tests/pub/path/path_posix_test.dart
@@ -153,8 +153,11 @@ main() {
group('split', () {
test('simple cases', () {
+ expect(builder.split(''), []);
+ expect(builder.split('.'), ['.']);
+ expect(builder.split('..'), ['..']);
expect(builder.split('foo'), equals(['foo']));
- expect(builder.split('foo/bar'), equals(['foo', 'bar']));
+ expect(builder.split('foo/bar.txt'), equals(['foo', 'bar.txt']));
expect(builder.split('foo/bar/baz'), equals(['foo', 'bar', 'baz']));
expect(builder.split('foo/../bar/./baz'),
equals(['foo', '..', 'bar', '.', 'baz']));
« no previous file with comments | « utils/tests/pub/oauth2_test.dart ('k') | utils/tests/pub/path/path_windows_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698