[julia-users] @test_approx_eq results in stack overflow for custom immutable type

2014-07-22 Thread daniel . matz
Inspired by the mighty ModInt example, I tried my hand at making a new immutable type. I wanted to make a FloatingPoint type that won't drift as it gets incremented, for use as a time in an integration loop. I've attached my code. The short story is: I try to compare the type's value to a Flo

Re: [julia-users] @test_approx_eq results in stack overflow for custom immutable type

2014-07-23 Thread Jacob Quinn
Very close! There were actually some changes recently to hashing in general that make it a bit easier to get this working (although undocumented , *cough*, Stefan Karpinski, *cough*). Here are the only changes I made to get `@test_approx_eq` working