• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

LICENSEH A D21-Feb-20201.1 KiB2017

READMEH A D21-Feb-2020950 2416

basic.datH A D21-Feb-20208.5 KiB222220

basic.tomlH A D21-Feb-202024.8 KiB1,4291,224

fowler-to-tomlH A D21-Feb-20202.4 KiB7762

nullsubexpr.datH A D21-Feb-20202 KiB8071

nullsubexpr.tomlH A D21-Feb-20205.7 KiB351300

repetition-long.datH A D21-Feb-20203.9 KiB8677

repetition-long.tomlH A D21-Feb-20205.5 KiB295252

repetition.datH A D21-Feb-20202.9 KiB8461

repetition.tomlH A D21-Feb-20205.9 KiB344294

README

1Test data was taken from the Go distribution, which was in turn taken from the
2testregex test suite:
3
4  http://www2.research.att.com/~astopen/testregex/testregex.html
5
6Unfortunately, the above link is now dead, but the test data lives on.
7
8The LICENSE in this directory corresponds to the LICENSE that the data was
9originally released under.
10
11The tests themselves were modified for RE2/Go. A couple were modified further
12by me (Andrew Gallant) (only in repetition.dat) so that RE2/Go would pass them.
13(Yes, it seems like RE2/Go includes failing test cases.) This may or may not
14have been a bad idea, but I think being consistent with an established Regex
15library is worth something.
16
17After some number of years, these tests were transformed into a JSON format
18using the fowler-to-json script in this directory, e.g.,
19
20  ./fowler-to-json basic.dat > basic.json
21
22which brings them into a sensible structured format in which other tests can
23be written.
24