]> git.proxmox.com Git - rustc.git/blob - vendor/regex-automata/tests/data/fowler/dat/README
New upstream version 1.67.1+dfsg1
[rustc.git] / vendor / regex-automata / tests / data / fowler / dat / README
1 Test data was taken from the Go distribution, which was in turn taken from the
2 testregex test suite:
3
4 http://www2.research.att.com/~astopen/testregex/testregex.html
5
6 Unfortunately, the above link is now dead, but the test data lives on.
7
8 The LICENSE in this directory corresponds to the LICENSE that the data was
9 originally released under.
10
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.
16
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:
20
21 ./scripts/fowler-to-toml tests/data/fowler tests/data/fowler/dat/*.dat
22
23 which brings them into a sensible structured format in which other tests can
24 be written.