1 Test data was taken from the Go distribution, which was in turn taken from the
4 http://www2.research.att.com/~astopen/testregex/testregex.html
6 Unfortunately, the above link is now dead, but the test data lives on.
8 The LICENSE in this directory corresponds to the LICENSE that the data was
9 originally released under.
11 The tests themselves were modified for RE2/Go. A couple were modified further
12 by 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
14 have been a bad idea, but I think being consistent with an established Regex
15 library is worth something.
17 After some number of years, these tests were transformed into a TOML format
18 using the fowler-to-toml script in the 'scripts' directory. To re-generate the
19 TOML files, then run the following from the root of this repository:
21 ./scripts/fowler-to-toml tests/data/fowler tests/data/fowler/dat/*.dat
23 which brings them into a sensible structured format in which other tests can