withData can't cope with a float value in its name...
# kotest
m
withData can't cope with a float value in its name function? I have a withData structure like this
val someFloats = listOf(1F, 2F, 4.2F)
withData<Float>({"Testing $someFloat"}, someFloats) { someFloat -> &tc
and the compiler complains about $someFloat in the name function (with our without .toString()). Full(er) disclosure, it's the seventh nested withData, but without the name function it works, and I've tried reducing the number of nests and it still complains. Bug?
p
the compiler won't be able to assume the names of parameters from the main test block and the nameFn - they're independent.
{"Testing $it"}