[go-nuts] Re: Unit tests - same vs separate package

2018-01-31 Thread Sonia Keys
Stevo, that's how I do it. Most of my tests are in an _test package so I can be sure my exported API works. Once in a while I want some extra tests on something not exported so those tests go in a separate source file. And yes, I try to do something with the filename to indicate that it conta

Re: [go-nuts] Re: Without normalisation is there any way of iterating over this string by grapheme?

2016-07-06 Thread Sonia Keys
It might be enough for you to just check for combining characters, something like https://play.golang.org/p/-eKwUWTHV0. (I think there's Mc and Me and then other grapheme considerations beyond combining characters, but this may be all you need.) On Wednesday, July 6, 2016 at 3:19:56 PM UTC, ga

Re: [go-nuts] Powersets and append() confusion

2016-06-18 Thread Sonia Keys
See also full slice expressions Bug fix using full slice expressions: https://play.golang.org/p/25wqGsZZ8O On Saturday, June 18, 2016 at 2:40:54 PM UTC-4, Oliver Schmid wrote: > > Thanks for the help Jakob. Now the docs about *append()* editing in