Hi Eliot. First, congratulations!!�� I though several times to refactor the primitives what I was not brave enough. I was not confidence of myself hahaha
Originally, ImageSegment didn't have a single test. Only some class side examples that in Pharo at least were not even working. Adrian Lienhard wrote the first 2 or 3 tests for them.� Then I needed to understand ImageSegment for my PhD, and the best way to understand them were writing unit tests ;)
So, now if you take a Pharo 1.1 image you will see there are 26 tests. The classes are ImageSegmentTest, ImageSegmentTestExport and ImageSegmentTestSwap. The tests are quite simple and cover not too much. They can be improved and there are more to write. They may be even not completly correct as I wrote them to understand ImageSegment, not because I already understood them ;)
In addition, there is one failing that I yet don't understand why: #testOutPointers3
I asked in mailing list but not really an answer in my opinion:
http://forum.world.st/Something-I-don-t-understand-with-ImageSegments-tp1296982p1296982.html
If you know why it is failing, tell me :)
continue answering above...
�