I've been working on implementing NSString enumerateSubstrings, and I was
wondering if anyone had any ideas about test cases.
My current implementation so far is here
I've been testing locally against output from the Darwin implementation to
make sure they match, but I've only really got English test cases. Ideally
I'd want a bunch of test cases from various languages so I can make sure
that the corelibs version matches the Darwin version as closely as
possible, and hopefully pick up any edge cases. If anyone has any links to
pieces of text that could be good to test against, that would be great.
I've been mostly using excerpts from Project Gutenberg books so far.
Also, I'm guessing that I might not be able to use
NSMutableCharacterSet/CharacterSet casting under Linux, since the bridging
between those types is not implemented properly yet?