i wonder what “data driven tests” add to the table...
# kotest
c
i wonder what “data driven tests” add to the table. can’t i just use
Copy code
listOf(
       PythagTriple(3, 4, 5),
       PythagTriple(6, 8, 10),
       PythagTriple(8, 15, 17),
       PythagTriple(7, 24, 25)
    ).map{ (a, b, c) -> test("test %a %b %c") { ...}
in a fun spec?
s
Yes you can.
c
ok so data driven tests are just for string specs?
s
No, most specs
They just avoid a bit of boilerplate
And you can do forNone as well as forAll