<div dir="ltr">Hey,<div><br></div><div>I&#39;ve been working on implementing NSString enumerateSubstrings, and I was wondering if anyone had any ideas about test cases.</div><div><br></div><div>My current implementation so far is hereĀ <a href="https://github.com/andybest/swift-corelibs-foundation/commit/58ab2927a4678e54c5176be7113170d2bdf53d78">https://github.com/andybest/swift-corelibs-foundation/commit/58ab2927a4678e54c5176be7113170d2bdf53d78</a></div><div><br></div><div>I&#39;ve been testing locally against output from the Darwin implementation to make sure they match, but I&#39;ve only really got English test cases. Ideally I&#39;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&#39;ve been mostly using excerpts from Project Gutenberg books so far.</div><div><br></div><div>Also, I&#39;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?</div><div><br></div><div><br></div><div>Thanks,</div><div><br></div><div>Andy</div></div>