Package rxpy :: Package engine :: Package simple :: Package _test :: Module re_tests
[hide private]
[frames] | no frames]

Module re_tests

source code

Variables [hide private]
  SYNTAX_ERROR
  FAIL
  SUCCEED
  benchmarks = [('Python|Perl', 'Perl'), ('(Python|Perl)', 'Perl...
  tests = [('(?P<foo_123', '', SYNTAX_ERROR), ('(?P<1>a)', '', S...
  u = eval("u'\N{LATIN CAPITAL LETTER A WITH DIAERESIS}'")
Variables Details [hide private]

benchmarks

Value:
[('Python|Perl', 'Perl'), ('(Python|Perl)', 'Perl'), ('Python|Perl|Tcl\
', 'Perl'), ('(Python|Perl|Tcl)', 'Perl'), ('(Python)\\1', 'PythonPyth\
on'), ('([0a-z][a-z0-9]*,)+', 'a5,b7,c9,'), ('([a-z][a-z0-9]*,)+', 'a5\
,b7,c9,'), ('Python', 'Python'), ('.*Python', 'Python'), ('.*Python.*'\
, 'Python'), ('.*(Python)', 'Python'),]

tests

Value:
[('(?P<foo_123', '', SYNTAX_ERROR), ('(?P<1>a)', '', SYNTAX_ERROR), ('\
(?P<!>a)', '', SYNTAX_ERROR), ('(?P<foo!>a)', '', SYNTAX_ERROR), ('(?P\
<foo_123>a)(?P=foo_123', 'aa', SYNTAX_ERROR), ('(?P<foo_123>a)(?P=1)',\
 'aa', SYNTAX_ERROR), ('(?P<foo_123>a)(?P=!)', 'aa', SYNTAX_ERROR), ('\
(?P<foo_123>a)(?P=foo_124', 'aa', SYNTAX_ERROR), ('(?P<foo_123>a)', 'a\
', SUCCEED, 'g1', 'a'), ('(?P<foo_123>a)(?P=foo_123)', 'aa', SUCCEED, \
'g1', 'a'), ('\\1', 'a', SYNTAX_ERROR), ('[\\1]', '\1', SUCCEED, 'foun\
d', '\1'), ('\\09', chr(0)+ '9', SUCCEED, 'found', chr(0)+ '9'), ('\\1\
...