Add longer flags
It is now possible to use longer flags instead of the short one-letter ones.
This commit is contained in:
parent
4ce267c08d
commit
ec1758509c
1 changed files with 33 additions and 15 deletions
|
|
@ -10,6 +10,11 @@ suite "Test NRE initialization":
|
|||
expect(SyntaxError): # ValueError would be bad
|
||||
discard re("[0-9]+",
|
||||
"89AEfimNsUWXxY<any><anycrlf><cr><crlf><lf><bsr_anycrlf><bsr_unicode><js><no_study>")
|
||||
expect(SyntaxError):
|
||||
discard re("[0-9]+",
|
||||
"<utf8><no_utf8><anchored><dollar_endonly><firstline>" &
|
||||
"<case_insensitive><multiline><no_auto_capture><dotall><ungreedy>" &
|
||||
"<ucp><extra><extended><no_start_optimize>")
|
||||
|
||||
test "incorrect options":
|
||||
expect(KeyError): discard re("[0-9]+", "a")
|
||||
|
|
|
|||
Loading…
Reference in a new issue