Join Slack
Powered by
Is there a way to do "1".shouldBeLessThan("5", myC...
# kotest
j
Javier
10/02/2020, 10:02 AM
Is there a way to do "1".shouldBeLessThan("5", myComparator) I can only see that I can use my comparator in equals/notEquals
s
sam
10/02/2020, 10:05 AM
Not currently
👍 1
j
Javier
10/02/2020, 10:06 AM
Is there an open issue for this?
s
sam
10/02/2020, 10:20 AM
nope
👍 1
c
christophsturm
10/02/2020, 10:38 AM
what is the use case for this?
j
Javier
10/02/2020, 10:56 AM
I was testing my Comparator
s
sam
10/02/2020, 10:57 AM
You could do myComparator.compare(1,5).shouldBeNegative() or something
👍 1
2
Views
Open in Slack
Previous
Next