Found an :each example using binding - is that the suggested option? Would still be really grateful for a link to the best examples of using the test framework out there.
Thanks. On May 12, 7:10 pm, Quzanti <quza...@googlemail.com> wrote: > Hi > > Now I am a bit baffled as how to store a fixture (eg a parsed xml > zipper) > > As a fixture is a function you can't do a def within it? > > Instead of me carrying on asking dumb questions I would be really > grateful if someone could point me to some source code or examples > where the test framework is heavily used. I searched for with-test > and :once in the clojure and contrib 1.1 source and couldn't find > anything. > > Thanks. > > On May 8, 7:30 am, Quzanti <quza...@googlemail.com> wrote: > > > > > Ah hah! > > > Thanks > > > On May 7, 9:35 pm, Stuart Sierra <the.stuart.sie...@gmail.com> wrote: > > > > On May 6, 12:40 pm, Quzanti <quza...@googlemail.com> wrote: > > > > > If you do anything outside an assertion you get an error saying you > > > > were outside an assertion. > > > > No, clojure.test permits any arbitrary code inside deftest. If you > > > get an error saying "Uncaught exception, not in assertion" it means > > > that some of that code threw an Exception when it was run. > > > > -S > > > > -- > > > 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 > > > Note that posts from new members are moderated - please be patient with > > > your first post. > > > To unsubscribe from this group, send email to > > > clojure+unsubscr...@googlegroups.com > > > For more options, visit this group > > > athttp://groups.google.com/group/clojure?hl=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 > > Note that posts from new members are moderated - please be patient with > > your first post. > > To unsubscribe from this group, send email to > > clojure+unsubscr...@googlegroups.com > > For more options, visit this group > > athttp://groups.google.com/group/clojure?hl=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 > Note that posts from new members are moderated - please be patient with your > first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group > athttp://groups.google.com/group/clojure?hl=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 Note that posts from new members are moderated - please be patient with your first post. 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