https://kotlinlang.org logo
#feed
Title
# feed
r

rocketraman

04/02/2019, 4:19 AM
Did you look at Hamkrest? https://github.com/npryce/hamkrest
n

nfrankel

04/02/2019, 6:48 AM
no, didn’t get the chance
c

christophsturm

04/03/2019, 3:17 PM
Copy code
expectThat(frodo.age).describedAs("${frodo.name}'s age").isEqualTo(44)
can also be written as
expectThat(frodo).get{age}.isEqualTo(44)
in strikt. thats one of the main advantages of strikt
n

nfrankel

04/04/2019, 7:40 AM
it seems in my snippet, you get a specific failure message
c

christophsturm

04/04/2019, 8:09 AM
yes when you use
get
you also get a specific error message that mentions the field name
2 Views