Add a withData() overload that accepts one element #3901
Labels
blocked 🚫
Issues that are blocked on external projects, for example a Kotlin bug
data-driven-testing 🗃️
Related to the data driven testing mechanisms within the testing framework.
In the process of writing tests, I spent half an hour messing with types and type signatures trying to figure out why the following test gave me type errors:
It gave me two errors. On
(input, count, expected)
I got:And on
withData
I got:Of course, maybe its obvious to you, dear reader, but it was not at all obvious to me what the issue was: there is no overload of
withData()
that accepts one element. You have to specify a minimum of two tests towithData()
. And the error messages led me astray. So therefore my feature request:Could you add an overload to
withData()
that accepts one element?The text was updated successfully, but these errors were encountered: