If I have a protocol that supposedly satisfies some constraints, and 
multiple implementations that supposedly implement the protocol, what is 
the best way to test them all?

A minimal example is here: 
https://gist.github.com/leifp/bf5c74eea98026329a76

This question on SO is basically the same as mine, but the answer seems 
less than ideal to me:
http://stackoverflow.com/questions/16578882/testing-to-the-interface-in-clojure

In my mind, the ideal solution lets you:
* See the failing implementation in the test output
* Don't repeat yourself

I'm surprised that this isn't well-trodden ground, given the amount of 
people using Components to organize their apps, but I can't find any 
examples.  Perhaps I am just failing to use the internet properly.

Thanks,
Leif

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to