--- On Thu, 11/13/08, Frantisek Sodomka wrote:
> [...]
> becomes:
> 
> (deftest t-Symbols
>    (check
>      (:equal
>        'abc (symbol "abc")
>        '*+!-_? (symbol "*+!-_?")
>        'abc:def:ghi (symbol "abc:def:ghi")
>        'abc/def (symbol "abc" "def")
>        'abc.def/ghi (symbol "abc.def" "ghi")
>        'abc/def.ghi (symbol "abc" "def.ghi")
>        'abc:def/ghi:jkl.mno (symbol "abc:def" "ghi:jkl.mno")
>      )
>      (instance? clojure.lang.Symbol 'alphabet)))
> 
> which is in my opinion much more readable. Any comments to
> this syntactic enhancement?

My first impression when I read that is that it's expecting each arg to be 
equal to each other, not the reality of being a list of (expected to be) equal 
pairs.

That's probably just me, I'm sure, but I find the original more readable and 
precise--something I think is key in tests, as tests are also documentation.

Dave


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to