Arc Forumnew | comments | leaders | submitlogin
2 points by zck 3291 days ago | link | parent

I see that you've got some code that's working, but if you want to extend it more, I'll recommend a unit test library I wrote. You might find some unit tests helpful to know when your code is working. The library is https://bitbucket.org/zck/unit-test.arc/ .

You'll make unit tests inside a test suite, like so:

    (suite match
           single-specific-element (assert-same '(t t) (match '(a) '(a)))
           single-variable-symbol (assert-same '((?x 3) t) (match '(?x) '(3))))
And you'll run them like this:

    (run-suite match)


2 points by cthammett 3291 days ago | link

Thanks this will be very useful.

-----