/xlua

Exercism problems in Lua

Primary LanguageLuaMIT LicenseMIT

xLua

Build Status

Exercism exercises in Lua

Setup Dev environment for contributing

Mac OS

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

  1. Lua Style Guide
  2. Learn Lua in 15 minutes

Contributing Guide

Please see the contributing guide

License

The MIT License (MIT)

Copyright (c) 2014 Katrina Owen, _@kytrinyx.com

Lua icon

The Lua icon is inspired by the Lua logo, which was designed by Alexandre Nakonechnyj.