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
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))
>
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
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
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