toBeIn
Expects that the subject of this expectation is within the expected range.
Return
an Expect for the subject of this expectation.
Since
1.3.0
Samples
expect('c') toBeIn 'a'..'f'
fails {
expect('A') toBeIn 'a'..'f'
}Expects that the subject of this expectation is within the expected range.
Return
an Expect for the subject of this expectation.
Since
1.3.0
Samples
expect(3) toBeIn 1..5
fails {
expect(0) toBeIn 1..5
}Expects that the subject of this expectation is within the expected range.
Return
an Expect for the subject of this expectation.
Since
1.3.0
Samples
expect(100L) toBeIn 50L..150L
fails {
expect(0L) toBeIn 50L..150L
}