summaryrefslogtreecommitdiff
path: root/test-suite/tests/regexp.test
AgeCommit message (Collapse)AuthorFilesLines
2012-01-10Merge remote-tracking branch 'origin/stable-2.0'Andy Wingo1-3/+12
Conflicts: libguile/__scm.h libguile/array-map.c libguile/procprop.c libguile/tags.h module/ice-9/deprecated.scm module/ice-9/psyntax-pp.scm module/ice-9/psyntax.scm test-suite/standalone/test-num2integral.c test-suite/tests/regexp.test
2012-01-09Make sure `regexp-quote' tests use Unicode-capable string ports.Ludovic Courtès1-3/+12
* test-suite/tests/regexp.test (with-unicode): New macro. ("regexp-quote"): Wrap all `regexp-quote' calls in it. This fixes tests on machines where the default port encoding is US-ASCII.
2011-05-15regexp.test needed char-code-limitAndy Wingo1-0/+2
* test-suite/tests/regexp.test (char-code-limit): Define a local version of this recently removed definition. Hopefully that's the only use of it though!
2010-11-24Fix `regexp.test' when the "en_US.utf8" locale isn't available.Ludovic Courtès1-3/+3
* test-suite/tests/regexp.test ("nonascii locales"): Move `with-locale' within the body of `pass-if' so that `unresolved' is caught.
2010-11-23fix regexp matches to refer to chars, not bytesAndy Wingo1-1/+8
* libguile/regex-posix.c (fixup_multibyte_match): Fixup the match structure to refer to character offsets, not byte offsets. Fixes bug 31650. * test-suite/tests/regexp.test: Add a test.
2010-10-08Always run at least the ASCII regexp tests.Ludovic Courtès1-2/+9
* test-suite/tests/regexp.test (with-ascii-or-latin1-locale): New macro. ("regexp-quote"): Use it instead of `with-latin1-locale'.
2010-03-04Try to avoid `guile-test' failures when it can't display the name of a test.Ludovic Courtès1-2/+4
This can happen, e.g., when printing "UNRESOLVED: regexp.test: TEST-NAME", where TEST-NAME contains characters that cannot be converted to the encoding of the current output or error port. * test-suite/guile-test (main): Set the conversion strategy for the output and error ports to `escape'. * test-suite/tests/regexp.test (current-output-port): Likewise.
2010-03-04Use `with-latin1-locale' in `regexp.test'.Ludovic Courtès1-66/+19
As a side effect, it fixes tests on platforms with no 8-bit locale and where executing regexps on characters >= 128 can lead to errors such as `cannot convert to output locale "US-ASCII": ""\x80""'. This commit partially reverts 7583976b ("More setlocale robustness in regexp tests"). * test-suite/tests/regexp.test (mysetlocale, set-latin-1): Remove. ("regexp-quote"): Use `with-latin1-locale' instead of the above procedures.
2009-10-12Modify regexp.test to work better with mac/darwinMichael Gran1-2/+6
* test-suite/tests/regexp.test (set-latin-1): also add .ISO8859-1 as a possible extension for latin-1 locales. Use set-latin-1 exclusively to set the locale for tests.
2009-09-10More setlocale robustness in regexp testsMichael Gran1-43/+65
* test-suite/tests/regexp.test (mysetlocale, set-latin-1): new functions (with-latin1-locale): removed (regexp-quote tests): try to print test names in locale but run tests in ISO-8859-1.
2009-09-09Avoid prematurely ending regexp test when ISO-8859-1 locale not foundMichael Gran1-50/+79
* test-suite/tests/regexp.test (with-latin1-locale): new function Call tests in context of with-latin1-locale
2009-09-078-bit locale needed for 8-bit regexp testsMichael Gran1-49/+50
Since the regex library expects 8-bit clean characters and an 8-bit locale, tests of 8-bit characters need to occur within the context of an 8-bit locale. * test-suite/tests/regexp.test (regexp-quote tests): wrap them in an ISO-8859-1 locale
2009-06-17Change Guile license to LGPLv3+Neil Jerram1-11/+10
(Not quite finished, the following will be done tomorrow. module/srfi/*.scm module/rnrs/*.scm module/scripts/*.scm testsuite/*.scm guile-readline/* )
2008-09-25Enclose `regexp.test' in a module.Ludovic Courtès1-2/+4
* test-suite/tests/regexp.test: Add `define-module' clause.
2008-09-25Fix handling of the FLAGS argument in `fold-matches'.Ludovic Courtès1-1/+24
* ice-9/regex.scm (fold-matches): If FLAGS is non-null, use `(car flags)', not `flags'. * test-suite/tests/regexp.test ("fold-matches"): New test prefix. * NEWS: Update.
2007-01-15merge from 1.8Kevin Ryde1-1/+33
2006-04-16merge from 1.8 branchKevin Ryde1-1/+1
2005-05-23The FSF has a new address.Marius Vollmer1-2/+2
2004-09-28(match:string): New tests.Kevin Ryde1-0/+12
2004-08-27(regexp-quote): New tests.Kevin Ryde1-0/+56
2004-07-27(make-regexp): Exercise flags args validation.Kevin Ryde1-1/+24
2002-05-06(regexp-substitute/global): Do not test with empty regexp. EmptyMarius Vollmer1-1/+0
regexps do not work on NetBSD.
1999-09-20* tests/regexp.test: Check regexp-substitute/global when there areJim Blandy1-0/+1
no matches. (Duh.)
1999-09-11* tests/regexp.test: New test file.Jim Blandy1-0/+102