-
-
Notifications
You must be signed in to change notification settings - Fork 705
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
improve documentation of SortedRange.release #8066
Conversation
|
Thanks for your pull request and interest in making D better, @dkorpel! We are looking forward to reviewing it, and you should be hearing from a maintainer soon.
Please see CONTRIBUTING.md for more information. If you have addressed all reviews or aren't sure how to proceed, don't hesitate to ping us with a simple comment. Bugzilla referencesYour PR doesn't reference any Bugzilla issue. If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog. Testing this PR locallyIf you don't have a local development environment setup, you can use Digger to test this PR: dub run digger -- build "master + phobos#8066" |
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.
A rebase will most likely get rid of the tester failures.
std/range/package.d
Outdated
| /// | ||
| @safe unittest | ||
| { | ||
| auto a = assumeSorted([ 1, 2, 3 ]); |
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 think that adding:
assert(a == sort!"a < b"([1, 2, 3]));Might clarify that a is a sorted range, whereas release simply extracts the underlying array.
0c872f9
to
5d5df69
Compare
|
hm... both circleCI and buildkite failt phobos with: This obviously has nothing to do with this PR. |
|
Hmm, it looks like the error might not be spurious after all. Could you try commenting out the unittest to see if the autotester still fails? |
14e5941
to
1b66279
Compare
1b66279
to
851719f
Compare
|
@dkorpel What happened with the testing pipeline when the unittest was commented? |
|
It was all green with the test commented out |
|
And now it's red again. I don't understand what's buildkite's problem with Phobos, the log ends in:
So it fails to remove the betterC tests? |
|
It's the same as circleCI. My assumption is that the test should be @BetterC |
851719f
to
7e34833
Compare
Ugh, this is why I never use nested unittests. I wish there was a way to make a top-level unittest work like a DDoc code example for a member function. |
|
It's still failing. Is there a way to see the circleci build log without giving them complete read/write access to all my private repositories? |
You can run these tests locally, Run all betterC tests Only the failing test: |
7e34833
to
971fcd6
Compare
I'm fairly certain that after this last rebase, this will be good to go. |
971fcd6
to
64e16b2
Compare
|
CircleCI and buildkite are happy now, so it's Azure's turn to error out: |
|
That was an unexpected ride for a documentation PR. Thanks for your patience @dkorpel ! |
Because it came up on the forum that the documentation of
releaseis not informative: When should I use SortedRange.release?