Hi Moritz,
Simply beautiful. That works!
Thank you all
Erlis
On Mon, Aug 27, 2012 at 2:06 PM, Moritz Ulrich wrote:
> This is a result of Light Table's instarepl: The test details get
> printed as string to *test-out*, which instarepl doesn't display.
>
> Tryclj seems to have a bug where it does
This is a result of Light Table's instarepl: The test details get
printed as string to *test-out*, which instarepl doesn't display.
Tryclj seems to have a bug where it doesn't redirect *out* to the
web-repl.
Anyway, try the following in instarepl:
(binding [*test-out* *out*]
(run-tests))
Thi
Hi Mayank,
That's not the part that's confusing me. Suppose I have 100 tests, and when
I run my tests I only get
{:type :summary, :pass 99, :test 100, :error 0, :fail 1}
Can you tell which one was the one that filed? I need more information, the
information that's described in the documentation,
correction :
("a" != "b") I mean (b has "" around it i..e)
On Mon, Aug 27, 2012 at 10:31 PM, Mayank Jain wrote:
>
>
> On Mon, Aug 27, 2012 at 10:17 PM, Erlis Vidal wrote:
>
>> Hi Mayank,
>>
>> I'm still unable to see why the test failed!
>>
>
> The test failed because "a" is not equal to "b" ! I
On Mon, Aug 27, 2012 at 10:17 PM, Erlis Vidal wrote:
> Hi Mayank,
>
> I'm still unable to see why the test failed!
>
The test failed because "a" is not equal to "b" ! Is that part confusing
you? or is the question something else?
Total tests = 1 (deftest declaration i.e.)
How many passed? = 1 (
Hi Mayank,
I'm still unable to see why the test failed!
Anyone knows why I'm getting this?
[image: Inline image 1]
On Mon, Aug 27, 2012 at 7:22 AM, Erlis Vidal wrote:
> I'm expecting the expected & actual detail. Maybe my problem is due to I'm
> executing this from lighttable insta repl.
> Ru
I'm expecting the expected & actual detail. Maybe my problem is due to I'm
executing this from lighttable insta repl.
Running this code in the web repl give me the same result.
http://tryclj.com/
Enter some Clojure code to be evaluated.
Clojure> (use 'clojure.test)
nil
Clojure> (is (= "a" "b"))
Try calling with-test-out :-
user> (use 'clojure.test)
*nil*
user> (deftest test1
(is (= "a" "b"))
(is (= "1" "1")))
*#'user/test1*
user> (with-test-out
(run-tests))
*Testing user
FAIL in (test1) (NO_SOURCE_FILE:1)
expected: (= "a" "b")
actual:
Here's my output using the repl from leiningen 2 (nREPL)
user=> (use 'clojure.test)
nil
user=> (is (= "a" "b"))
FAIL in clojure.lang.PersistentList$EmptyList@1 (NO_SOURCE_FILE:1)
expected: (= "a" "b")
actual: (not (= "a" "b"))
false
user=>
It tells me both the expected and actual. What else ar
Hi guys,
I'm starting to use clojure.test but when I got a failing test I don't get
any information why the error failed.
for example if I evaluate this in the repl I just get *false* back
(is (= "a" "b"))
running the tests with (run-tests) give me this result back:
{:type :summary, :pass 2, :
10 matches
Mail list logo