-
-
Notifications
You must be signed in to change notification settings - Fork 15.4k
Add isStorePath
tests
#26223
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
Add isStorePath
tests
#26223
Conversation
@Profpatsch, thanks for your PR! By analyzing the history of the files in this pull request, we identified @edolstra, @zimbatm and @MarcWeber to be potential reviewers. |
in { | ||
storePath = isStorePath goodPath; | ||
storePathAppendix = isStorePath | ||
"${goodPath}/bin/python"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why isn't that a store path?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder. We could change the semantics of the function. @edolstra would that make sense?
In any case, it’s nice that this test case documents the current semantics.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed, without the tests we wouldn't be having this conversation.
storePath = isStorePath goodPath; | ||
storePathAppendix = isStorePath | ||
"${goodPath}/bin/python"; | ||
nonAbsolute = isStorePath (concatStrings (tail (stringToCharacters goodPath))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe add otherPath = isStorePath "/something/else"
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Didn't I already merge this function?
I wonder why it includes the first commit again, yes. Maybe the commit ID changed? |
Some tests cc @zimbatm