Branch: Tag:

2016-08-18

2016-08-18 20:32:14 by Martin Nilsson <nilsson@fastmail.com>

Improved hash_value debug.

6001:    int __hash() { return hash_value("foo"); }    int `==(mixed o) { return o == "foo"; }    }; -  return m[A()]; - ]], 1) +  if( !m[A()] ) +  return (string)hash_value("foo"); +  return 0; + ]], 0)      test_any([[    mapping m = ([ "foo" : 1 ]);
6010:    int __hash() { return hash_value("foo"); }    int `==(mixed o) { return o == "foo"; }    }; -  return sizeof(m - ([ A() : 1 ])); +  if( sizeof(m - ([ A() : 1 ])) ) +  return (string)hash_value("foo"); +  return 0;   ]], 0)      test_equal([[ `+( ([1:2]) )]],[[ ([1:2]) ]])