On Wed, Jan 28, 2009 at 11:18 AM, Frantisek Sodomka <fsodo...@gmail.com>wrote:
> > Shawn, I keep wondering where is the best place to put tests for bug fixes. > One way would be to create a separate file (bugs.clj) and put all these > tests there. Another way is to include these tests into their respective > categories - although I wonder for example test for (= () []) => true ... > where should it go? Should it go equality.clj or to sequences.clj??? > Any suggestions/opinions about where is the best place for bug fixes??? > > Thank you, Frantisek Frantisek, I considered the same questions and decided to organize my tests alongside existing ones by topic. My reasoning was that the goal is a unified maintainable test suite, and I was just plugging a couple holes. A test in a bugs.clj script is likely to be duplicated as another developer fills out the tests for a related topic unawares. The fact that a given test originated in response to a bug report is a minor historical artifact, which I felt merited no more structure than a small comment next to the test (and a comment in the Google bug tracker). As for locating specific topics, currently the suite is organized by top level clojure.org topics. Sometimes you just have to pick (I wasn't clear on evaluation vs. reader in some cases). The equality example you mentioned could go in data_structures or a specific vectors file. Shawn --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---