Closed rmunn closed 10 years ago
@swaroopch @rmunn the test is nonsensical period, you can't guarantee ordering with hash-array mapped tries and that's what the test is testing. It'll fail randomly because of the non-deterministic ordering.
The test has to be predicated on set membership rather than ordering to:
@bitemyapp I agree, hope https://github.com/swaroopch/edn_format/commit/e04475aa2bbcdcd07813c6f129f43db289bedeb4 makes more sense.
@swaroopch yeah I think that should fix the intermittent test failures related to order dependency for that test! Thanks :D
@bitemyapp Thanks for keeping watch!
One of the round-trip tests failed the first time I ran it:
There are six possible permutations of
:a
,:b
, and(1 2 3)
, but only four of those permutations are checked for in the test results. The following patch will check for the other two possible permutations:The patch is simple enough that I'm not going to bother with setting up a pull request, though I can do so if you'd prefer.