synhershko/Spatial4n — pull request #1 by mattwarren (2012-04-27 16:18:52+00:00)
Title: Tests ported so far

Here's what I've done so far, I've ported the tests for distance, shape and util (see https://github.com/spatial4j/spatial4j/tree/master/spatial4j-core/src/test/java/com/spatial4j/core), just context left.

BTW there's some pretty funky code in here, see https://github.com/mattwarren/Spatial4n/blob/master/Spatial4n.Tests/shape/TestShapeGeo.cs#L20. It randomly chooses an implementation each time! I think I get what they're doing, but it means you have to run the tests at least 3 times to make sure all the implementations are covered. Plus it must be a pain to debug, because you have to know which implementation was chosen each time.