-
-
Notifications
You must be signed in to change notification settings - Fork 210
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: samples of iterableSubjectChangers in api-infix and api-fluent #1155
ADD: samples of iterableSubjectChangers in api-infix and api-fluent #1155
Conversation
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.
@simonNozaki see ArraySubjectChangerSamples, please copy the contents from there regarding subject changes etc.
...mmonTest/kotlin/ch/tutteli/atrium/api/fluent/en_GB/samples/IterableSubjectChangersSamples.kt
Outdated
Show resolved
Hide resolved
@robstoll , |
Only the first two are relevant for Iterable |
I understand
|
...mmonTest/kotlin/ch/tutteli/atrium/api/fluent/en_GB/samples/IterableSubjectChangersSamples.kt
Outdated
Show resolved
Hide resolved
...mmonTest/kotlin/ch/tutteli/atrium/api/fluent/en_GB/samples/IterableSubjectChangersSamples.kt
Outdated
Show resolved
Hide resolved
@simonNozaki using a Range as you did is perfectly fine. It would indeed not make sense to use |
|
...ommonTest/kotlin/ch/tutteli/atrium/api/fluent/en_GB/samples/IterableSubjectChangerSamples.kt
Outdated
Show resolved
Hide resolved
...ommonTest/kotlin/ch/tutteli/atrium/api/fluent/en_GB/samples/IterableSubjectChangerSamples.kt
Outdated
Show resolved
Hide resolved
...commonTest/kotlin/ch/tutteli/atrium/api/infix/en_GB/samples/IterableSubjectChangerSamples.kt
Outdated
Show resolved
Hide resolved
.asList { | ||
it toContain 3 // fails | ||
it toContain 4 // still evaluated even though above `toContain` already fails | ||
// use `asList o` if you want a fail fast behaviour |
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.
Align
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.
The problem are the parameter names in intellij. You could hide them but I am going to fix the alignment, that's fine.
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 see you fixed it already 🙂👍
|
||
@Test | ||
fun asList() { | ||
expect(0..2) // subject within this expectation-group is of type List<Int> |
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.
Move comment one line below
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.
Fixed this.
.asList { | ||
it toContain 3 // fails | ||
it toContain 4 // still evaluated even though above `toContain` already fails | ||
// use `asList o` if you want a fail fast behaviour |
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 see you fixed it already 🙂👍
@Test | ||
fun asList() { | ||
expect(0..2) | ||
// subject within this expectation-group is of type List<Int> |
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.
This one is still on the wrong line. Did you forget to push your changes?
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.
Move comment one line below
I saw such a comment, so I moved this comment one line below(Before chainging, this comment was on the line with expect(0..2)
)
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 see, a misunderstanding. Put it after asList (like you did it api-infix)
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.
@robstoll
Fixed this.
As far as I can, I fixed alignment of spaces. Would you review again, please? |
@simonNozaki great, thanks for your first contribution to Atrium 🙂👍 |
Preview
Adding samples of iterableSubjectChangers to api-infix and api-fluent.
Related Issue
#1038
I confirm that I have read the Contributor Agreements v1.0, agree to be bound on them and confirm that my contribution is compliant.