halgari/clojure-py — comment on commit a309433f55d0ef4aa51c477971c8eb0a6620f269
File:  line 0
By halgari:

First of all, this looks great!

To start testing, normally I just start writing some sanity checks at the end of the file (or we could also do them as a unittest). And just start trying the different functions. So start with an empty map, add two items, assert that they are in the correct order, add a few more, assert again, remove a few, assert again, etc.

Normally at the end of the tests I try something insane, like adding 1000 items to the set and verifying that they all exist. With the persistent hash map, this turned up some really odd bugs where it would work fine until I hit 500 items, then it would start overwriting items.