josephwilk / stereotype

A fixture library for setting up test data in Clojure
https://github.com/josephwilk/stereotype
26 stars 1 forks source link

stereotypes with functions that take themselves as argument #5

Closed josephwilk closed 11 years ago

josephwilk commented 11 years ago

Currently:

(defstereotype :thing {:thingey (fn [thing]  (str thing "blah")}

The function gets called with a empty map {}

(> (arg-count value) 0) (value {})

These calls need to lazy evaluate, once all the other attributes have resolved.