I've worked out a way to test local functions. When I tried it out by hand, it 
felt good. See here: http://bit.ly/b1AoG7

Implementing it is on my wishlist for Midje, my test framework. 
http://github.com/marick/Midje



On Sep 10, 2010, at 6:24 AM, alux wrote:

> Hello,
> 
> I always thought it to be good style to make helper functions only as
> visible as needed, e.g. by using letfn.
> 
> But when I want to test my code, I just dont see a way to access these
> local functions for tests.



-----
Brian Marick, independent consultant
Mostly on agile methods with a testing slant
Author of /Programming Cocoa with Ruby/
www.exampler.com, www.exampler.com/blog, www.twitter.com/marick

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

Reply via email to