Closed danilopedraza closed 4 days ago
I saw a nice way to write unit tests in r/ProgrammingLanguages: put a decorator above a function, with an input/output pair:
r/ProgrammingLanguages
@test((2, 3), 8) @test((3, 2), 9) let f(n, k) := n**k
I don't like this anymore.
I saw a nice way to write unit tests in
r/ProgrammingLanguages
: put a decorator above a function, with an input/output pair: