https://kotlinlang.org logo
#strikt
Title
s

sandjelkovic

05/16/2019, 8:13 AM
Maybe you could also provide a way to do assertions in the wrapped value as well, not just a predicate?
To clarify, something similar to this:
Copy code
expectThat(either).isRight {
            get { name }.isEqualTo("Super name")
            get { id }.isNotNull().isGreaterThan(0L)
            get { uuid }.isNotNull().isNotBlank()
}
a

abendt

05/16/2019, 3:53 PM
Thanks for the suggestion. I will See what i can do
s

sandjelkovic

05/16/2019, 5:39 PM
That looks cool, thanks!
2 Views