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
_______________________________________________
swift-corelibs-dev mailing list
swift-corelibs-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-corelibs-dev

Reply via email to