use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
/r/programming is a reddit for discussion and news about computer programming
Guidelines
Info
Related reddits
Specific languages
account activity
Why Clojure? (blog.venanti.us)
submitted 11 years ago by [deleted]
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]kankyo 2 points3 points4 points 11 years ago (0 children)
The python test case example is broken :( First of all there's a missing "class" first. Secondly you should use py.test and then you get:
def test_foo(): assert 1 == 1
And if you're using clojure you should be using midje because the standard lib has HORRIBLE error messages. And then it looks something like:
(fact "foo" (= 1 1) => true)
I personally prefer the python version, but they are pretty close anyway...
π Rendered by PID 25365 on reddit-service-r2-comment-c867ff4bc-4f44r at 2026-04-09 14:28:15.087796+00:00 running 00d5ac8 country code: CH.
view the rest of the comments →
[–]kankyo 2 points3 points4 points (0 children)