-# $OpenBSD: test-patterns-lua.out,v 1.1 2015/06/23 18:03:09 semarie Exp $
string='/page/51'
pattern='^/(%a+)/(%d+)$'
page 51
nil
string='/page/page-51'
pattern='/(.*)/%9-(%d+)'
-lua53: ./patterns-tester.lua:2: invalid capture index %9
+X_PATTERNS_TESTER_X:3: invalid capture index %9
stack traceback:
[C]: in function 'string.match'
- ./patterns-tester.lua:2: in main chunk
+X_PATTERNS_TESTER_X:3: in main chunk
[C]: in ?
string=':-)'
pattern=')+'
-lua53: ./patterns-tester.lua:2: invalid pattern capture
+X_PATTERNS_TESTER_X:3: invalid pattern capture
stack traceback:
[C]: in function 'string.match'
- ./patterns-tester.lua:2: in main chunk
+X_PATTERNS_TESTER_X:3: in main chunk
[C]: in ?
string='/page/51'
pattern='/page/51('
-lua53: ./patterns-tester.lua:2: unfinished capture
+X_PATTERNS_TESTER_X:3: unfinished capture
stack traceback:
[C]: in function 'string.match'
- ./patterns-tester.lua:2: in main chunk
+X_PATTERNS_TESTER_X:3: in main chunk
[C]: in ?
string='/page/51'
pattern='/page/51%'
-lua53: ./patterns-tester.lua:2: malformed pattern (ends with '%')
+X_PATTERNS_TESTER_X:3: malformed pattern (ends with '%')
stack traceback:
[C]: in function 'string.match'
- ./patterns-tester.lua:2: in main chunk
+X_PATTERNS_TESTER_X:3: in main chunk
[C]: in ?
string='/page/51'
pattern='/page/[51'
-lua53: ./patterns-tester.lua:2: malformed pattern (missing ']')
+X_PATTERNS_TESTER_X:3: malformed pattern (missing ']')
stack traceback:
[C]: in function 'string.match'
- ./patterns-tester.lua:2: in main chunk
+X_PATTERNS_TESTER_X:3: in main chunk
[C]: in ?
string='/page/(51)'
pattern='/page/%b('
-lua53: ./patterns-tester.lua:2: malformed pattern (missing arguments to '%b')
+X_PATTERNS_TESTER_X:3: malformed pattern (missing arguments to '%b')
stack traceback:
[C]: in function 'string.match'
- ./patterns-tester.lua:2: in main chunk
+X_PATTERNS_TESTER_X:3: in main chunk
[C]: in ?
string='/page/51'
pattern='()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()'
-lua53: ./patterns-tester.lua:2: too many captures
+X_PATTERNS_TESTER_X:3: too many captures
stack traceback:
[C]: in function 'string.match'
- ./patterns-tester.lua:2: in main chunk
+X_PATTERNS_TESTER_X:3: in main chunk
[C]: in ?
string='/page/51'
pattern='/page/%f'
-lua53: ./patterns-tester.lua:2: missing '[' after '%f' in pattern
+X_PATTERNS_TESTER_X:3: missing '[' after '%f' in pattern
stack traceback:
[C]: in function 'string.match'
- ./patterns-tester.lua:2: in main chunk
+X_PATTERNS_TESTER_X:3: in main chunk
[C]: in ?
string='/page/51'
pattern='/page%f/51'
-lua53: ./patterns-tester.lua:2: missing '[' after '%f' in pattern
+X_PATTERNS_TESTER_X:3: missing '[' after '%f' in pattern
stack traceback:
[C]: in function 'string.match'
- ./patterns-tester.lua:2: in main chunk
+X_PATTERNS_TESTER_X:3: in main chunk
[C]: in ?
string='q*********************************'
pattern='*************************************q'
-lua53: ./patterns-tester.lua:2: max repetition items
+X_PATTERNS_TESTER_X:3: max repetition items
stack traceback:
[C]: in function 'string.match'
- ./patterns-tester.lua:2: in main chunk
+X_PATTERNS_TESTER_X:3: in main chunk
[C]: in ?
string='q+++++++++++++++++++++++++++++++++'
pattern='+++++++++++++++++++++++++++++++++++++q'
-lua53: ./patterns-tester.lua:2: max repetition items
+X_PATTERNS_TESTER_X:3: max repetition items
stack traceback:
[C]: in function 'string.match'
- ./patterns-tester.lua:2: in main chunk
+X_PATTERNS_TESTER_X:3: in main chunk
[C]: in ?
string='q---------------------------------'
pattern='-------------------------------------q'
-lua53: ./patterns-tester.lua:2: max repetition items
+X_PATTERNS_TESTER_X:3: max repetition items
stack traceback:
[C]: in function 'string.match'
- ./patterns-tester.lua:2: in main chunk
+X_PATTERNS_TESTER_X:3: in main chunk
[C]: in ?
string='q?????????????????????????????????'
pattern='?????????????????????????????????????q'
-lua53: ./patterns-tester.lua:2: max repetition items
+X_PATTERNS_TESTER_X:3: max repetition items
stack traceback:
[C]: in function 'string.match'
- ./patterns-tester.lua:2: in main chunk
+X_PATTERNS_TESTER_X:3: in main chunk
[C]: in ?