puffnfresh / roy

Small functional language that compiles to JavaScript.
http://roy.brianmckenna.org/
MIT License
834 stars 74 forks source link

Add some basic type parser tests #198

Closed kennknowles closed 11 years ago

kennknowles commented 11 years ago

Hello,

In order to more easily isolate parsing failures when editing the grammar, I thought I would begin a test suite just for the type parser. This is just a skeleton but I hope it is useful anyhow.

Notes and limitations:

joneshf commented 11 years ago

I was hoping someone more qualified would have looked at this by now, but I'm fine with it. Maybe @puffnfresh, @taku0, or someone can give it a glance. If not I'll merge it.

Until we get a quickcheck implementation in roy like suggested in #21, I don't see a problem in using claire. The source may be written in ls, but what we'd get from npm would be js, so there's no extra dependency for it. Feel free to add it if it makes this easier/better.

taku0 commented 11 years ago

It seems fine to me.