Created
December 7, 2019 21:08
-
-
Save mathias/7656e20deb59040835e67f9d7c7a07b1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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