[swift-corelibs-dev] NSString enumerateSubstrings

Andy Best andybest.net at gmail.com
Mon Jul 24 06:15:27 CDT 2017


Hey,

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
https://github.com/andybest/swift-corelibs-foundation/commit/58ab2927a4678e54c5176be7113170d2bdf53d78

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?


Thanks,

Andy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-corelibs-dev/attachments/20170724/29cdb2e8/attachment.html>


More information about the swift-corelibs-dev mailing list