A collection of modules that make writing Teal feel more like Go.
testing
- exports a test context typeassert
- easy assertions for testserrors
- exports an error interface and common functionsunsafe
- provides the ability to catch lua errors within a lambda and return them as valuescli
- provides command line interface functionality including flags and positional arguments
tl-test
- a simple test runner for thetesting.T
interface. Can run all test functions in a single file, or in all*_test.tl
files under a directory recursively with thepath/...
notation. Seesrc/lib
for example test files.
defer
- set a function to be executed when the calling function returns
- Interfaces can be emulated with record types. See
src/lib/errors.tl
for an example.
-
tl
- the Teal compiler$ luarocks install tl