NattLua
NattLua copied to clipboard
Test improvements
Using it and describe doesn't work well for me because I spend too much time thinking about how to describe what's going on. This is especially difficult for me since I'm not familiar with compiler and typesystem terms.
I want to sort tests by fundamental to high level to avoid test error explosions.
Move tests from "misc" files to appropriate files.
Remove the need to name tests. For instance this feels unnecessary as the code is self explanatory.
test("any should be a subset of foo", function()
assert(any:SubsetOf(foo))
end)
It can (probably should) also be made more self explanatory.
assert(any:IsSubsetOf(foo) == true)
Not sure if test(function() end) is nesseceary if I make sure tests are sorted properly.