Firth icon indicating copy to clipboard operation
Firth copied to clipboard

Lack of tests

Open hikari-no-yume opened this issue 9 years ago • 2 comments

We don't have any! That's not good.

There should be some for the interpreter (probably written in JS) to test the implementation's components, and some for the specification (probably written in Firth itself) to test an implementation's specification conformance.

This would require selecting a JS unit test framework, and writing a Firth one. The JS unit test one will probably be one made for node.

hikari-no-yume avatar Mar 26 '15 01:03 hikari-no-yume

Do you have a testing framework in mind? Mocha could be appropriate I guess

mathroc avatar Mar 27 '15 01:03 mathroc

We could avoid doing any unit tests for now and only have high-level tests written in Firth itself, perhaps. Though unit tests are valuable.

I'd like to get Firth self-hosting as soon as I can, though that's probably still quite a way off and maybe not a realistic goal.

Anyway, I'm not familiar with any node.js unit test frameworks (sadly I haven't used them in previous node projects D:)

hikari-no-yume avatar Mar 27 '15 02:03 hikari-no-yume