Re: New mod code is broken

2009-03-12 Thread bOR_
Hmm. might be mixing two versions of clojure on my system than. Thanks for correcting me! On Mar 12, 11:47 am, Frantisek Sodomka wrote: > Latest SVN r1327 works ok: > > user=> (mod 9 -3) > 0 > user=> (map #(mod % 3) (range -10 10)) > (2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0) > > Test-clojure run

Re: New mod code is broken

2009-03-12 Thread Frantisek Sodomka
Latest SVN r1327 works ok: user=> (mod 9 -3) 0 user=> (map #(mod % 3) (range -10 10)) (2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0) Test-clojure runs ok too. Frantisek On Mar 12, 10:30 am, bOR_ wrote: > Mod seems to have broken again > > (mod 9 -3)  gives -3 > > (map #(mod % 3) (range -10 10)) >

Re: New mod code is broken

2009-03-12 Thread bOR_
Mod seems to have broken again (mod 9 -3) gives -3 (map #(mod % 3) (range -10 10)) (2 3 1 2 3 1 2 3 1 2 0 1 2 0 1 2 0 1 2 0) svn 1372. Chouser wrote: > On Sat, Feb 14, 2009 at 12:45 AM, Stephen C. Gilardi wrote: > > > > The new mod isn't working properly though: > > > >Testing clojur

Re: New mod code is broken

2009-02-13 Thread Chouser
On Sat, Feb 14, 2009 at 12:45 AM, Stephen C. Gilardi wrote: > > The new mod isn't working properly though: > >Testing clojure.contrib.test-clojure.numbers > >FAIL in (test-mod) (numbers.clj:104) >expected: (= (mod 9 -3) 0) > actual: (not (= -3 0)) > >FAIL

Re: New mod code is broken

2009-02-13 Thread Stephen C. Gilardi
On Feb 13, 2009, at 7:40 PM, Jeffrey Straszheim wrote: I just updated, and the unit tests for mod are breaking. It looks like the new mod only works for ints. Thanks for the report. I removed the non-integer tests. The new mod isn't working properly though: Testing clojure.contrib