Join Slack
How would you define property test for a function that should always return error if the input `stri...
# kotest
s
Srki Rakic
03/05/2022, 11:41 PM
How would you define property test for a function that should always return error if the input
string
is null, empty, or blank?
s
sam
03/05/2022, 11:53 PM
do you need a property test for this? Could use a data test with three inputs, null, "", " "
s
Srki Rakic
03/06/2022, 12:01 AM
Yeah, I think you are right. Those 3 scenarios fully validate the "property" of the function.
3
Views
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by