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 <squee...@mac.com> 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 in (test-mod) (numbers.clj:104)
> >        expected: (= (mod -9 3) 0)
> >          actual: (not (= 3 0))
>
> So true:
> http://groups.google.com/group/clojure/browse_thread/thread/2a0ee4d248f3d131/c4f79c5a7a7c20e2
>
> > It will need a fix.
>
> Indeed it will.  Fortunately it already has one:
> http://code.google.com/p/clojure/issues/detail?id=23#c6
>
> --Chouser
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to