shouldNotThrow* assertions should return value and not Unit #3972
Amejonah1200
started this conversation in
6.0 changes
Replies: 1 comment 2 replies
-
TBH I fail to see any practical need for this change. If we want to do anything with the returned value, we can just use it in an assertion, such as |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello o7
I'm new to kotest and found something bothering me: why do
shouldNotThrow*
(without Unit) not return a value?It would be helpful when dealing with methods which instead of giving a Result, they throw on error and return T.
Technically, I would say "same goes for tests too"...
Beta Was this translation helpful? Give feedback.
All reactions