aboutsummaryrefslogtreecommitdiff
path: root/challenge-082/tyler-wardhaugh/lua/test.lua
diff options
context:
space:
mode:
Diffstat (limited to 'challenge-082/tyler-wardhaugh/lua/test.lua')
-rwxr-xr-xchallenge-082/tyler-wardhaugh/lua/test.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/challenge-082/tyler-wardhaugh/lua/test.lua b/challenge-082/tyler-wardhaugh/lua/test.lua
index 23b3a4e063..20f0d33d27 100755
--- a/challenge-082/tyler-wardhaugh/lua/test.lua
+++ b/challenge-082/tyler-wardhaugh/lua/test.lua
@@ -9,3 +9,12 @@ describe("Task 1, Common Factors", function()
assert.are.same(t1.common_factors(18, 23), {1})
end)
end)
+
+describe("Task 2, Interleave Strings", function()
+ local t2 = require'ch-2'
+ it("produces correct results for the examples", function()
+ assert.are.same(t2.interleave_string("XY", "X", "XXY"), true)
+ assert.are.same(t2.interleave_string("XXY", "XXZ", "XXXXZY"), true)
+ assert.are.same(t2.interleave_string("YX", "X", "XXY"), false)
+ end)
+end)