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

Update issue #65 - remove_filename() post condition is incorrect #19

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

EricWF
Copy link

@EricWF EricWF commented Feb 4, 2016

Hi Beman,

The current issue resolution says:

Effects: *this = parent_path(), except that if parent_path() == root_path(), clear().

But this should say root_name() instead of root_path(). For example the breakdown of /foo is:
root_name = ""
root_path = "/"
parent_path = "/"

Using root_name() means that path("/foo").remove_filename() should call clear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant