aboutsummaryrefslogtreecommitdiff
path: root/challenge-239/deadmarshal/lua/ch-1.lua
blob: 3b441d801935a921a09937031408e9e60c2dc8c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env lua

local function same_string(t1,t2)
  assert(type(t1) == 'table' and
	 type(t2) == 'table','t1,t2 must be tables!')
  return table.concat(t1) == table.concat(t2)
end

print(same_string({"ab","c"},{"a","bc"}))
print(same_string({"ab","c"},{"ac","b"}))
print(same_string({"ab","cd","e"},{"abcde"}))