Branch: Tag:

2010-10-16

2010-10-16 23:47:57 by Martin Stjernholm <mast@lysator.liu.se>

Fixed bug where objects without order relation were considered equal.

This could cause multisets with objects to not insert new objects even
when they weren't equal according to `==. Bug introduced in aea87ea.

5435:    return sort ((array) (m - (<>)));   ]], ({"2", "Stone"}))    + test_any([[ +  class X (int i) { +  int `< (mixed o) {return 0;} +  int `== (mixed o) {return 0;} +  }; +  multiset m = (<X(2)>); +  m[X(4)] = 1; +  m[X(1)] = 1; +  m[X(3)] = 1; +  return sizeof (m); + ]], 4) +    // mapping tests      test_any([[mapping m=([]);int e;