Adding more callout with string tests.

This commit is contained in:
Zoltán Herczeg 2015-03-12 11:49:29 +00:00
parent bccfdcb172
commit e43b3d435b
3 changed files with 40 additions and 0 deletions

View File

@ -6,6 +6,8 @@ Version 10.20 xx-xx-2015
1. Callouts with string arguments have been added. 1. Callouts with string arguments have been added.
2. Assertion code generator in JIT has been optimized.
Version 10.10 06-March-2015 Version 10.10 06-March-2015
--------------------------- ---------------------------

4
testdata/testinput2 vendored
View File

@ -4206,4 +4206,8 @@ a random value. /Ix
/^a(b)c(?C{AB})def/B /^a(b)c(?C{AB})def/B
abcdef\=callout_capture abcdef\=callout_capture
/(?C`a``b`)(?C'a''b')(?C"a""b")(?C^a^^b^)(?C%a%%b%)(?C#a##b#)(?C$a$$b$)(?C{a}}b})/B
/(?:a(?C`code`)){3}/B
# End of testinput2 # End of testinput2

34
testdata/testoutput2 vendored
View File

@ -14060,4 +14060,38 @@ Callout: {AB} last capture = 1
0: abcdef 0: abcdef
1: b 1: b
/(?C`a``b`)(?C'a''b')(?C"a""b")(?C^a^^b^)(?C%a%%b%)(?C#a##b#)(?C$a$$b$)(?C{a}}b})/B
------------------------------------------------------------------
Bra
CalloutStr `a`b` 10 0
CalloutStr 'a'b' 20 0
CalloutStr "a"b" 30 0
CalloutStr ^a^b^ 40 0
CalloutStr %a%b% 50 0
CalloutStr #a#b# 60 0
CalloutStr $a$b$ 70 0
CalloutStr {a}b} 80 0
Ket
End
------------------------------------------------------------------
/(?:a(?C`code`)){3}/B
------------------------------------------------------------------
Bra
Bra
a
CalloutStr `code` 14 0
Ket
Bra
a
CalloutStr `code` 14 0
Ket
Bra
a
CalloutStr `code` 14 0
Ket
Ket
End
------------------------------------------------------------------
# End of testinput2 # End of testinput2