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

Unified Diff: utils/tests/pub/path/path_windows_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/path/path_posix_test.dart ('k') | utils/tests/pub/pub_lish_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_windows_test.dart
diff --git a/utils/tests/pub/path/path_windows_test.dart b/utils/tests/pub/path/path_windows_test.dart
index 0d2d3f11e7bfad16b66c07d6c5b9953734ffa822..fdad9b02655549e9151885939acb382f02c982e3 100644
--- a/utils/tests/pub/path/path_windows_test.dart
+++ b/utils/tests/pub/path/path_windows_test.dart
@@ -172,9 +172,12 @@ main() {
group('split', () {
test('simple cases', () {
+ expect(builder.split(''), []);
+ expect(builder.split('.'), ['.']);
+ expect(builder.split('..'), ['..']);
expect(builder.split('foo'), equals(['foo']));
- expect(builder.split(r'foo\bar'), equals(['foo', 'bar']));
- expect(builder.split(r'foo\bar\baz'), equals(['foo', 'bar', 'baz']));
+ expect(builder.split(r'foo\bar.txt'), equals(['foo', 'bar.txt']));
+ expect(builder.split(r'foo\bar/baz'), equals(['foo', 'bar', 'baz']));
expect(builder.split(r'foo\..\bar\.\baz'),
equals(['foo', '..', 'bar', '.', 'baz']));
expect(builder.split(r'foo\\bar\\\baz'), equals(['foo', 'bar', 'baz']));
« no previous file with comments | « utils/tests/pub/path/path_posix_test.dart ('k') | utils/tests/pub/pub_lish_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698