pcre.tests: fix tcs that breaks on pcre 8.39
parent
89e661f18c
commit
5603e3ff67
|
@ -1,7 +1,8 @@
|
||||||
USING: accessors arrays assocs continuations http.client kernel
|
USING: accessors arrays assocs continuations http.client kernel
|
||||||
literals math.ranges pcre pcre.ffi pcre.private random sequences
|
literals math math.parser math.ranges pcre pcre.ffi pcre.private
|
||||||
system tools.test ;
|
random sequences system tools.test ;
|
||||||
QUALIFIED: regexp
|
QUALIFIED: regexp
|
||||||
|
QUALIFIED: splitting
|
||||||
IN: pcre.tests
|
IN: pcre.tests
|
||||||
|
|
||||||
{ { "Bords" "words" "word" } } [
|
{ { "Bords" "words" "word" } } [
|
||||||
|
@ -102,16 +103,29 @@ os unix? [ [ 10 ] [ PCRE_CONFIG_NEWLINE pcre-config ] unit-test ] when
|
||||||
|
|
||||||
{ t } [ "abcö" "\\p{Ll}{4}" matches? ] unit-test
|
{ t } [ "abcö" "\\p{Ll}{4}" matches? ] unit-test
|
||||||
|
|
||||||
! Dotall mode, off by default
|
! This used to work in 8.36, but might have changed in later versions.
|
||||||
{ f } [ "." <compiled-pcre> PCRE_DOTALL has-option? ] unit-test
|
! See: https://bugs.exim.org/show_bug.cgi?id=1875
|
||||||
{ t } [ "(?s)." <compiled-pcre> PCRE_DOTALL has-option? ] unit-test
|
pcre_version " " splitting:split1 drop string>number 8.36 <= [
|
||||||
|
{ t t } [
|
||||||
|
"(?s)." <compiled-pcre> PCRE_DOTALL has-option?
|
||||||
|
"(?i)x" <compiled-pcre> PCRE_CASELESS has-option?
|
||||||
|
] unit-test
|
||||||
|
] when
|
||||||
|
|
||||||
{ f } [ "\n" "." matches? ] unit-test
|
{ f } [ "\n" "." matches? ] unit-test
|
||||||
{ t } [ "\n" "(?s)." matches? ] unit-test
|
{ t } [ "\n" "(?s)." matches? ] unit-test
|
||||||
|
|
||||||
! Caseless mode, off by default
|
{ f t } [
|
||||||
{ { f t } } [
|
"hello\nthere" "^.*$" <compiled-pcre> matches?
|
||||||
{ "x" "(?i)x" } [ <compiled-pcre> PCRE_CASELESS has-option? ] map
|
"hello\nthere" "(?s)^.*$" <compiled-pcre> matches?
|
||||||
|
] unit-test
|
||||||
|
|
||||||
|
! Modes off by default
|
||||||
|
{ f f } [
|
||||||
|
! Caseless mode
|
||||||
|
"x" <compiled-pcre> PCRE_CASELESS has-option?
|
||||||
|
! Dotall mode
|
||||||
|
"." <compiled-pcre> PCRE_DOTALL has-option?
|
||||||
] unit-test
|
] unit-test
|
||||||
|
|
||||||
! Backreferences
|
! Backreferences
|
||||||
|
|
Loading…
Reference in New Issue