Phil Hagelberg a écrit : > I notice you use with-test to mix your tests in together with your > implementation. This seems to be less common than storing the tests in > their own file; I'm wondering if you are happy with this approach? One > advantage of keeping things in their own file is that it's easier for > the test suite to serve as a usage example, but keeping it together may > be more convenient for other reasons. I haven't tried it myself. >
I see two advantages to using with-test: * documentation/usage examples as you pointed out, * and that makes me feel guiltier for nor updating them. > I can see the benefit of looking on the classpath since it means you can > store your template inside a jar and distribute everything that way. But > I think it would be convenient if it could check for the existence of > the file relative to the current directory first. > I'll add support for java.io.File and java.net.URL as an argument to template/deftemplate/snippet/defsnippet in complement of String and xml tree. -- Professional: http://cgrand.net/ (fr) On Clojure: http://clj-me.blogspot.com/ (en) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---