diff options
Diffstat (limited to 'Lua/test.lua')
| -rw-r--r-- | Lua/test.lua | 6 |
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 |
