jckarter / clay

The Clay programming language
http://claylabs.com/clay
Other
404 stars 34 forks source link

Update test suite. #485

Closed ghost closed 11 years ago

ghost commented 11 years ago

Update many tests to use cleaner TEST_ syntax.

stepancheg commented 11 years ago

Changes that can be split into separate commit should be separate commits.

stepancheg commented 11 years ago

What's wrong with Function in TestCase? TestCase is generic now, so I can't (for instance) just declare a variable of type Maybe[TestCase].

jckarter commented 11 years ago

Updating tests to use test.module is nice, but I would keep TestCase using arrays and Function. As @stepancheg noted, it's nice to be able to refer to test cases as values with concrete type, and it also eliminates a bunch of instantiation.