> Literally: when iterating over the key/value pairs, the order seems to
> be the order in which the key/values are defined in the map. Is this
> true?

For small numbers of keys (<7 I think) they're stored in a linear  
format (analogous to an associative list), and the insertion order is  
effectively preserved. Beyond that size they're stored in a tree, so  
the order will change at that threshold.

I would suggest allowing configurable sorting in the function you're  
testing, so the test only uses the supported API. Alternatively, write  
your test such that you compute all of the equivalent permitted  
values, and make sure one of them wins.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to