Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix expanduser with empty string #23506

Merged
merged 1 commit into from
Aug 30, 2017
Merged

Fix expanduser with empty string #23506

merged 1 commit into from
Aug 30, 2017

Conversation

omus
Copy link
Member

@omus omus commented Aug 30, 2017

Fixed missed corner case where an empty string is passed into expanduser.

@omus omus added the filesystem Underlying file system and functions that use it label Aug 30, 2017
@@ -10,6 +10,7 @@ for S in (String, GenericString)
@test basename(S("foo$(sep)bar")) == "bar"
@test dirname(S("foo$(sep)bar")) == "foo"

@test expanduser(S("")) == ""
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are some expanduser tests later in this file too. Not sure if this should go here or later on.

@vtjnash vtjnash merged commit 3cb9eb9 into master Aug 30, 2017
@vtjnash vtjnash deleted the cv/expanduser-empty branch August 30, 2017 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
filesystem Underlying file system and functions that use it
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants