Writing and evaluating tests
Tests may combine both lua and terra code. For example, the following code directly evaluates a lua statement
and the following snippet involves a terra function
If a test fails then the linenumber and filename of the test statement is printed for convenience. For example, the above code returns
test passedtest passedtest failed in test.t, linenumber 11
test
always expects a boolean result.