Name |
Date |
Size |
#Lines |
LOC |
||
---|---|---|---|---|---|---|
.. | - | - | ||||
LICENSE | D | 23-Nov-2023 | 1.1 KiB | 20 | 17 | |
README | D | 23-Nov-2023 | 950 | 24 | 16 | |
basic.dat | D | 23-Nov-2023 | 8.5 KiB | 222 | 220 | |
basic.toml | D | 23-Nov-2023 | 24.8 KiB | 1,429 | 1,224 | |
fowler-to-toml | D | 23-Nov-2023 | 2.4 KiB | 77 | 62 | |
nullsubexpr.dat | D | 23-Nov-2023 | 2 KiB | 80 | 71 | |
nullsubexpr.toml | D | 23-Nov-2023 | 5.7 KiB | 351 | 300 | |
repetition-long.dat | D | 23-Nov-2023 | 3.9 KiB | 86 | 77 | |
repetition-long.toml | D | 23-Nov-2023 | 5.5 KiB | 295 | 252 | |
repetition.dat | D | 23-Nov-2023 | 2.9 KiB | 84 | 61 | |
repetition.toml | D | 23-Nov-2023 | 5.9 KiB | 344 | 294 |
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