Re: How do I print each test name in clojure.test?

2015-09-01 Thread James Reeves
The clojure.test/report multimethod is what you're looking for. You can add a method for the :begin-test-var or :end-test-var types: (defmethod clojure.test/report :begin-test-var [m] (println (-> m :var meta :name))) The report var itself is dynamic, so you can override it that way if you

labrep error message (FileNotFoundException bin/run.clj (No such file or directory) java.io.FileInputStream.open)

2015-09-01 Thread r/ Wobben
Hello, When I want to start labrepl it stops with this error message. Installed clojure 1.7.0-alpha1. java : openjdk7-jre-headless. Roelof -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.

Re: Clojure bootstrap, what am I missing here?

2015-09-01 Thread Mikera
A few things to consider: 1. Performance is a key consideration. The speed of the compiler is a major determinant of startup time for Clojure applications, which is very important to many people. Having the compilker written in Java probably helps a lot here - it is generally easier to write hi

Re: migae: clojure on Google App Engine

2015-09-01 Thread Nicholas Faiz
Thanks. This is very helpful. I successfully built an example Clojure service on GAE last week working from http://flowa.fi/blog/2014/04/25/clojure-gae-howto.html?lang=en . Looking forward to reading through your examples. Cheers, Nicholas On Sunday, August 30, 2015 at 4:49:43 AM UTC+10, Gregg

who can help me get clojure function list in notepad++? thanks!

2015-09-01 Thread Alex Woods
my set is error: ;notepad++\functionList.xml

Re: who can help me get clojure function list in notepad++? thanks!

2015-09-01 Thread Alex Woods
notepad++ support clojure by lisp, clojure api & autocompletefile & readme of notepad++ https://drive.google.com/file/d/0By5ssgBX1IWaWDMydXdMdHI0Z2s/view?usp=sharing 在 2015年9月1日星期二 UTC+8下午10:30:38,Alex Woods写道: > > >

Re: How do I print each test name in clojure.test?

2015-09-01 Thread Mayank Jain
Hey thanks for the reply. If I use only this, it works well. > (defmethod clojure.test/report :begin-test-var [m] > (println (-> m :var meta :name))) > But if I use the following code instead, > (defmulti custom-report :type) > > (defmethod custom-report :default [m] > (clojure.

[ANN] Clojure/conj 2015 tickets go on sale today at 3 pm EDT!

2015-09-01 Thread Alex Miller
Sorry for the late notice here but Clojure/conj 2015 tickets will go on sale today! Clojure/conj is the largest (and oldest) Clojure conference and will take place this year in Philadelphia, PA from Nov 16-18. A limited number of early bird tickets will be available for $275 (these usually sell

[ANN] prismatic/schema 1.0 adds automatic test data generation

2015-09-01 Thread Jason Wolfe
We're excited to finally bring Schema out of alpha, while introducing some new exciting features around testing: test.check integration and data completion. Check out the blog post for details about these new applications. http://blog.getprismatic.com/schema-1-0-released/ We've also rewritten

Re: [ANN] prismatic/schema 1.0 adds automatic test data generation

2015-09-01 Thread Matt Mitchell
Awesome and good work! Can't wait to try it out. - Matt On Tuesday, September 1, 2015 at 2:02:30 PM UTC-4, Jason Wolfe wrote: > > We're excited to finally bring Schema out of alpha, while introducing some > new exciting features around testing: test.check integration and data > completion. Che

Re: How do I print each test name in clojure.test?

2015-09-01 Thread Fluid Dynamics
On Tuesday, September 1, 2015 at 12:34:52 PM UTC-4, Mayank Jain wrote: > (defmethod custom-report :default [m] >> (clojure.test/report m)) >> >> (binding [clojure.test/report custom-report] >> (clojure.test/run-all-tests)) >> > Uh-oh. -- You received this message because you are sub

Re: How do I print each test name in clojure.test?

2015-09-01 Thread James Reeves
On 1 September 2015 at 17:34, Mayank Jain wrote: > > It throws Stackoverflow error > > StackOverflowError >> clojure.lang.Util.equiv (Util.java:33) >> clojure.core/isa? (core.clj:5115) >> clojure.lang.Var.invoke (Var.java:388) >> clojure.lang.MultiFn.isA (MultiFn.java:123) >> clojure.lang.MultiFn.

Re: feedback about solutions

2015-09-01 Thread Amith George
Hi, I am not an expert :) I haven't heard of this repo or even understand what the exercises are. Nonetheless, based on what you wrote, some simple changes (to possibly make it more idiomatic?), (< x 0) use (neg? x) (if (= (mod n divisor)0) > true > false)) use (= (mod n d

Re: feedback about solutions

2015-09-01 Thread Amith George
Forgot to add, there is a community written clojure style guide [1] that you may skim through. I had read it a long time ago. My impression was that a lot of the guidelines aligned with my own preferences. [1] - https://github.com/bbatsov/clojure-style-guide -- You received this message becau

Re: feedback about solutions

2015-09-01 Thread Jony Hudson
You might find kibit interesting too: https://github.com/jonase/kibit In its own words "kibit is a static code analyzer for Clojure, ClojureScript, cljx and other Clojure variants. It uses core.logic to search for patter

Re: Clojure bootstrap, what am I missing here?

2015-09-01 Thread Patrick Gombert
There is an effort underway to port the stdlib to clojure named clojure.core . The idea is to eventually to move off of clojure and bootstrap it with the clojure in clojure compiler, but that's a ways off. Here

Re: feedback about solutions

2015-09-01 Thread r/ Wobben
Thanks, For anyone who is interested. Here are the exercises and theory: http://iloveponies.github.io/120-hour-epic-sax-marathon/I-am-a-horse-in-the-land-of-booleans.html and here are the exercises layout ; https://github.com/iloveponies/i-am-a-horse-in-the-land-of-booleans/blob/master/src/i_a