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