aboutsummaryrefslogtreecommitdiff
path: root/Lua/test.lua
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-09-26 13:43:39 -0700
committerBruce Hill <bruce@bruce-hill.com>2021-09-26 13:43:39 -0700
commit9983e2444a60571a93eb149feaf1da3a8d0455de (patch)
tree319bb9bfe0e39dc174e63032fdcb3b3c27f41234 /Lua/test.lua
parent77d9007a88a18e0dee08aa9ba93e3aec86375572 (diff)
Switched pattern objects to use a full userdata instead of a table
Diffstat (limited to 'Lua/test.lua')
-rw-r--r--Lua/test.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lua/test.lua b/Lua/test.lua
index 792a534..731b044 100644
--- a/Lua/test.lua
+++ b/Lua/test.lua
@@ -13,6 +13,12 @@ local function repr(obj)
end
print("Matching:")
+print(bp.match(".", "ABC"))
+print(bp.match(".", "ABC", 2))
+print(bp.match(".", "ABC", 3))
+print(bp.match(".", "ABC", 4) or "no match")
+print(bp.match(".", "ABC", 5) or "no match")
+
for m in bp.matches("(*`a-z) => '(@0)'", "one two three") do
print(repr(m))
end