-
Notifications
You must be signed in to change notification settings - Fork 8
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
Rewrite empty without CE #89
Conversation
Why this?
AFAIK that expectation is not part of the "contract". |
This is a good addition, thanks! It'll likely create less overhead.
Behavior of The description of the test is wrong, probably copy/paste mistake. It should be something like: ``CE empty taskSeq, call Current after MoveNextAsync returns Unchecked-defaultof`` |
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.
Thanks for this! Just a few nits below, otherwise LGTM. Not sure why the test report doesn't come up. Will rerun, see what that does.
Also, IMHO given an invalid operation, better fail fast. Tell the guy immediately he did something wrong, don't give him a no-sense value to make it fail later or even worst, not fail at all and have inconsistent data he'll maybe discover 1 year later. PS: If we want to strictly stick to the seq model, we should give 2 different exceptions. I can certainly do that by adding a state variable, but IMHO the most important thing is to fail. |
Thers something to say for that. But I didn’t choose this approach by accident or personal preference. Let me check what the consensus is outside of that example (wouldn’t be the first time |
@gusty I've updated the permissions for the CI report-tests jobs. This should (hopefully) fix the hanging jobs here (see: dorny/test-reporter#149 and #91). Can you rebase? (and yes, here we do love rebase for linear history, contrary to that other company ;) ). (I could do it, but I'm afraid that as soon as I would, the permissions change and we'll get a false positive...) |
Looks like the reporting is failing here for a different reason, it doesn't compile (does it compile locally?:
|
I've fixed the compile error and did a bit of cleanup to clarify uses of |
3c29fdb
to
c5667fa
Compare
Following the guide on Dorny here, and after having it run at least once in main, it should now finally create the reports. |
c5667fa
to
4e2f15e
Compare
About whether or not raising an exception, I've answered that in #90 (specifically, this: #90 (comment)). Basically, both BCL and F# are not consistent here, and I would like to apply the principle of least surprise if at all possible. That is, |
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've made a few changes to fix the compile error and to update the Utils
with ValueTask
members. Not entirely part of this PR, but badly needed for clarity.
Also updated the changelog.
Thanks for this change @gusty!
Co-authored-by: Abel Braaksma <[email protected]>
Co-authored-by: Abel Braaksma <[email protected]>
97d30b6
to
d68a884
Compare
Thanks for this change, merged. edit: will be available in v0.3.0. |
A straight-forward implementation that doesn't rely on the CE