Re: Slime hack for REPL testing

2012-02-27 Thread Nils Bertschinger
Hi Stefan, On Feb 27, 3:23 pm, Stefan Kamphausen wrote: > Hi, > > extracting forms from the REPL session into some test-magic definitely is > useful.  However, my sessions seem to be structured in a different way and > only having access to the previous three inputs doesn't seem viable to me. > I

Re: Slime hack for REPL testing

2012-02-27 Thread Stefan Kamphausen
Hi, On Monday, February 27, 2012 2:52:56 PM UTC+1, Nils Bertschinger wrote: > > Hi everyone, > > just finished a small hack for swank-clojure (see my fork on github: > github.com/bertschi/swank-clojure) > [...] > Now, hit M-x slime-extract-test and this gets transformed into an > expression

Slime hack for REPL testing

2012-02-27 Thread Nils Bertschinger
Hi everyone, just finished a small hack for swank-clojure (see my fork on github: github.com/bertschi/swank-clojure) The repl thread now has access to the last three input forms that were typed into the repl. These forms are accessible as **1, **2 and **3 respectively. The Common Lisp names +, ++

Slime hack for REPL testing

2012-02-27 Thread Nils Bertschinger
Hi everyone, I just did a small hack for swank-clojure which has the repl thread hold the last three input forms in variables **1, **2 and **3 respectively. Based on this, I added a slime function slime-extract-test which does the following: user> (range 7) (0 1 2 3 4 5 6) user> (range 3)