Skip to content

Instantly share code, notes, and snippets.

@mathias
Created December 7, 2019 21:08
Show Gist options
  • Save mathias/7656e20deb59040835e67f9d7c7a07b1 to your computer and use it in GitHub Desktop.
Save mathias/7656e20deb59040835e67f9d7c7a07b1 to your computer and use it in GitHub Desktop.
(local lume (require :lume))
(local busted (require :busted))
(local describe busted.describe)
(local it busted.it)
(lambda plus-one [a]
(+ a 1))
(local tests {1 2
3 4})
(describe "plus-one"
(fn []
(it "has correct output" (fn []
(each [input expected-output (pairs tests)]
(assert.equals (plus-one input) expected-output))))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment