Google Truth not allowing us to do .isGreaterThanOrEqualTo() and cannot chain multiple calls

37 Views Asked by At

This is using Kotlin in android through tried in a non-android project. It just asks if we want to create the function. The value we wanted to compare was a Double, but .toInt() did not help.

FWIW, Bard showed this as possible and when I told it the code was not compiling it said check the import, which is fine.

1

There are 1 best solutions below

1
Chris Povirk On BEST ANSWER

Are you looking for isAtLeast(...)? It's the API that implements a "greater than or equal to" check.