phil-t
12/21/2021, 10:56 AMtestString shouldHaveMinLength 1
But it doesn’t work for a `Int?`:
testInt shouldBeGreaterThan 0
The error is - Infix call corresponds to a dot-qualified call 'testInt.shouldBeGreaterThan(0)' which is not allowed on a nullable receiver 'testInt'. Use '?.'-qualified call instead
So I can get around it by doing this:
testInt?.shouldBeGreaterThan(0)
Is this a limitation of Kotest and is there a better way I can handle this?sam
12/21/2021, 7:02 PMfoo.shouldNotBeNull().shouldBeGreaterThan(0)
sam
12/21/2021, 7:02 PMphil-t
12/22/2021, 8:41 AM