[swift-corelibs-dev] NSString enumerateSubstrings
andybest.net at gmail.com
Mon Jul 24 06:15:27 CDT 2017
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?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-corelibs-dev