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

..--

LICENSED23-Nov-20231.1 KiB2017

READMED23-Nov-2023950 2416

basic.datD23-Nov-20238.5 KiB222220

basic.tomlD23-Nov-202324.8 KiB1,4291,224

fowler-to-tomlD23-Nov-20232.4 KiB7762

nullsubexpr.datD23-Nov-20232 KiB8071

nullsubexpr.tomlD23-Nov-20235.7 KiB351300

repetition-long.datD23-Nov-20233.9 KiB8677

repetition-long.tomlD23-Nov-20235.5 KiB295252

repetition.datD23-Nov-20232.9 KiB8461

repetition.tomlD23-Nov-20235.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