Platform (JVM, JS and/or Android): jall
expect(expection).cause<NumberFormatException>().messageContains(...)
// instead of
expect(exception).feature(Throwable::cause) {
isA<NumberFormatException>().messageContains(...)
}
// and
expect(expection).cause<NumberFormatException>() {
messageContains(...)
cause.toBe(null)
}
// instead of
expect(exception).feature(Throwable::cause) {
isA<NumberFormatException>() {
messageContains(...)
feature(Throwable::cause).toBe(null)
}
}
Following the things you need to do:
lib
domain
cause to ThrowableAssertions (see Fun0Assertions.isThrowing)api
Expect<TSub> (see fun0Assertions.toThrow)assertionCreator-lambda and returns Expect<TSub> (see fun0Assertions.toThrow as well)@since 0.9.0 to both functionsother
TODO #31 and simplify the code with the shortcut funI'll work on this if you would like to take this issue over.I'll pick this one up :)
Heads up, I'll have this done this weekend. Tad hard to do this midweek with work. Sorry for the delay @robstoll :(
@javatarz no problem at all
@javatarz do you need help? Un-assigning you again, so that others could take over. Write here if you still work on it or if you would like to give it a go now
I'll work on this before starting #305
@robstoll wrote:
note that this one is not a good first issue, I would recommend you first implement
31 to get a bit more into Atrium and come back to this one afterwards
A good idea
implemented with 4c72123e