Exercism exercises in Lua
For Mac OS, you can use homebrew to install Lua and luarocks
$ brew install lua
Then install busted testing framework for lua. Busted is similiar to Jasmine testing framework in Javascript.
$ luarocks install busted
Then create a folder for a new test, test class and the implementation.
→ ls -l
total 16
-rw-r--r--@ 1 aarti staff 1111 Nov 25 14:05 bob_test.lua
-rw-r--r--@ 1 aarti staff 453 Nov 25 14:05 bob.lua
Run the test
$ busted .
Rename bob.lua to example.lua, add test to config.json
→ ls -l
total 16
-rw-r--r--@ 1 aarti staff 1111 Nov 25 14:05 bob_test.lua
-rw-r--r--@ 1 aarti staff 453 Nov 25 14:05 example.lua
Other resources
Please see the contributing guide
The MIT License (MIT)
Copyright (c) 2014 Katrina Owen, _@kytrinyx.com
The Lua icon is inspired by the Lua logo, which was designed by Alexandre Nakonechnyj.