aboutsummaryrefslogtreecommitdiff
path: root/testlabel.lua
diff options
context:
space:
mode:
Diffstat (limited to 'testlabel.lua')
-rw-r--r--testlabel.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/testlabel.lua b/testlabel.lua
index cb92657..d9bac64 100644
--- a/testlabel.lua
+++ b/testlabel.lua
@@ -173,6 +173,15 @@ p = m.Rec(#m.T(22), m.P"a", 22)
173r, l, serror = p:match("bbc") 173r, l, serror = p:match("bbc")
174assert(r == nil and l == 0 and serror == "bbc") 174assert(r == nil and l == 0 and serror == "bbc")
175 175
176p = m.Rec(#m.P("a") * m.T(22), m.T(15), 22)
177r, l, serror = p:match("abc")
178assert(r == nil and l == 15 and serror == "abc")
179
180p = m.Rec(#(m.P("a") * m.T(22)), m.T(15), 22)
181r, l, serror = p:match("abc")
182assert(r == nil and l == 15 and serror == "bc")
183
184
176 185
177-- tests related to repetition 186-- tests related to repetition
178p = m.T(1)^0 187p = m.T(1)^0