Re: Infinite seqs and testing

2011-02-13 Thread Andreas Liljeqvist
Roger that. Thanks for the help. 2011/2/13 Stuart Sierra > Redefining equality is not something to be taken lightly. It can break in > subtle ways with identity and hash codes. > > You may want a custom equality function, like "equal up to n elements of a > sequence," for use in your tests. >

Re: Infinite seqs and testing

2011-02-13 Thread Stuart Sierra
Redefining equality is not something to be taken lightly. It can break in subtle ways with identity and hash codes. You may want a custom equality function, like "equal up to n elements of a sequence," for use in your tests. -Stuart Sierra clojure.com -- You received this message because you

Infinite seqs and testing

2011-02-13 Thread Andreas Liljeqvist
I have a statemap with a couple of infinite lazy-seq. When doing testing I want to check states for equality. This of course fails on the whole infinite thing. The sane thing is taking only the first item from the seqs when doing the equality check. How would I accomplish this in the easiest way?