Thanks for the help and your feedback, Steve! Clojure needs some unit tests and I like writing them, so it is a win- win situation :-)
Yes, this is our first test in clojure-contrib.test-clojure.vars. I checked it in together with other changes as revision 846. Frantisek On May 26, 9:27 pm, "Stephen C. Gilardi" <squee...@mac.com> wrote: > Hi Frantisek! > > On May 25, 2009, at 7:11 AM, Frantisek Sodomka wrote: > > > (def a) > > (deftest test-binding > > (are (= _1 _2) > > (binding [a 4] a) 4 ; regression in Clojure SVN r1370 > > )) > > I see those tests going in over time... Thanks so much for making them! > > The checkin notes for this change mention "top level". I suspect > that's related to why the test you posted gave a false pass. > > We can use eval to bring the test up to the top level: > > (def a) > (deftest test-binding > (are (= _1 _2) > (eval `(binding [a 4] a)) 4 ; regression in Clojure SVN > r1370 > )) > > This passes with r1375 and fails with r1370. > > Will this be our first test in clojure-contrib.test-clojure.vars? > > Feel free to check this in or let me know if you'd like me to. > > Thanks, > > --Steve > > smime.p7s > 3KViewDownload --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---