hoisie/mustache

Implement the mustache test suite

abh opened this issue · 5 comments

I think the current tests provide fairly good coverage, but I'd gladly accept more test cases.

abh commented

The point of using the "spec tests" is to know that it's compatible with the other implementations to the extent possible (rather than "everything implemented is ok").

Yes but are there tests that are in a format we can use? Some Ruby tests may specifically test mustache with Ruby class inheritance, for instance, and those are hard to use.

abh commented

They're defined in yml and json (I believe the same tests in both formats). The ruby code is just to convert the yaml to json.

https://github.com/jabley/mustache/tree/feature/specs

Using the spec tests is pretty easy to get going.