slightlyoff/cassowary-js-refactor — pull request #23 by devongovett (2012-06-30 00:06:40+00:00)
Title: Avoid relying on toString in the tests

I improved the tests I submitted earlier to avoid relying on `toString` and object key iteration order, which we [found](https://github.com/slightlyoff/cassowary-js-refactor/pull/20#issuecomment-6665044) to be problematic across JS engines. To do this, I added an `equals` method to HashTable and Expression which compares two instances of those objects regardless of key order. This makes the tests pass in all the browsers I tested.