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 for arrayAssertions of api-infix #857
Conversation
Codecov Report
@@ Coverage Diff @@
## master #857 +/- ##
==========================================
+ Coverage 85.82% 89.77% +3.94%
==========================================
Files 466 407 -59
Lines 4608 4040 -568
Branches 266 211 -55
==========================================
- Hits 3955 3627 -328
+ Misses 589 362 -227
+ Partials 64 51 -13
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
.asList { | ||
it contains "C" // fails | ||
it contains "D" // still evaluated even though `contains "C"` already fails | ||
// use `.asList.` 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.
// use `.asList.` if you want a fail fast behaviour | |
// use `asList o` if you want a fail fast behaviour |
same same in other places
} /* // subject here is back to type List<Int> | ||
*/size { // subject inside this block is of type Int (actually 3) | ||
it isLessThan 4 | ||
} |
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.
In PairAssertionSamples you did the following which I think reads nicer
expect(listOf(1, 2, 3))
.size { // subject inside this block is of type Int (actually 3)
it isGreaterThan 1
} // subject here is back to type List<Int>
.size { // subject inside this block is of type Int (actually 3)
it isLessThan 4
}
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.
two details
@szatyinadam hat-trick 🎉 |
Add samples for arrayAssertions of api-infix.
Fix #675