danilopedraza / symstatic

The Symstatic programming language code repository
https://symstatic.org/book
GNU General Public License v3.0
2 stars 0 forks source link

Test syntax #26

Closed danilopedraza closed 4 days ago

danilopedraza commented 3 months ago

I saw a nice way to write unit tests in r/ProgrammingLanguages: put a decorator above a function, with an input/output pair:

@test((2, 3), 8)
@test((3, 2), 9)
let f(n, k) := n**k
danilopedraza commented 4 days ago

I don't like this anymore.