aboutsummaryrefslogtreecommitdiff
path: root/challenge-095/tyler-wardhaugh/lua/test.lua
diff options
context:
space:
mode:
Diffstat (limited to 'challenge-095/tyler-wardhaugh/lua/test.lua')
-rwxr-xr-xchallenge-095/tyler-wardhaugh/lua/test.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/challenge-095/tyler-wardhaugh/lua/test.lua b/challenge-095/tyler-wardhaugh/lua/test.lua
new file mode 100755
index 0000000000..164a3d3e3d
--- /dev/null
+++ b/challenge-095/tyler-wardhaugh/lua/test.lua
@@ -0,0 +1,12 @@
+#!/usr/bin/env lua
+
+require 'busted.runner'()
+
+describe("Task 1, Palindrome Number", function()
+ local t1 = require'ch-1'
+ it("produces correct results for the examples", function()
+ assert.truthy(t1.is_palindrome(1221))
+ assert.falsy(t1.is_palindrome(-101))
+ assert.falsy(t1.is_palindrome(90))
+ end)
+end)