Skip to content

Instantly share code, notes, and snippets.

@pithyless
Last active November 11, 2016 09:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pithyless/b45fe5c7d77906d30a3d490e84e1ddf3 to your computer and use it in GitHub Desktop.
Save pithyless/b45fe5c7d77906d30a3d490e84e1ddf3 to your computer and use it in GitHub Desktop.
CLJS lein-doo not flushing correctly?

Running lein node test once (but also happens in auto watch-mode).

10 items map - OK

(deftest foo-test
  (is (= 'foo
         (reduce #(assoc %1 %2 inc) {} (range 10)))))
FAIL in (foo-test)
expected: (= (quote foo) (reduce (fn* [p1__22443# p2__22444#] (assoc p1__22443# p2__22444# inc)) {} (range 10)))
  actual: (not (= foo {:F #object[cljs$core$inc "function cljs$core$inc(x){
return (x + (1));
}"], :_ #object[cljs$core$inc "function cljs$core$inc(x){
return (x + (1));
}"], :Q #object[cljs$core$inc "function cljs$core$inc(x){
return (x + (1));
}"], :w #object[cljs$core$inc "function cljs$core$inc(x){
return (x + (1));
}"], :- #object[cljs$core$inc "function cljs$core$inc(x){
return (x + (1));
}"], :J #object[cljs$core$inc "function cljs$core$inc(x){
return (x + (1));
}"], :s #object[cljs$core$inc "function cljs$core$inc(x){
return (x + (1));
}"], :+ #object[cljs$core$inc "function cljs$core$inc(x){
return (x + (1));
}"], :H #object[cljs$core$inc "function cljs$core$inc(x){
return (x + (1));
}"], :! #object[cljs$core$inc "function cljs$core$inc(x){
return (x + (1));
}"], :i #object[cljs$core$inc "function cljs$core$inc(x){
return (x + (1));
}"]}))

Ran 21 tests containing 74 assertions.
1 failures, 0 errors.

20 items map - NOT OK

(deftest foo-test
  (is (= 'foo
         (reduce #(assoc %1 %2 inc) {} (range 20)))))
FAIL in (foo-test)
expected: (= (quote foo) (reduce (fn* [p1__22443# p2__22444#] (assoc p1__22443# p2__22444# inc)) {} (range 20)))
  actual: (not (= foo {0 #object[cljs$core$inc "function cljs$core$inc(x){
return (x + (1));
}"], 1 #object[cljs$core$inc "function cljs$core$inc(x){
return (x + (1));
}"], 2 #object[cljs$core$inc "function cljs$core$inc(x){
return (x + (1));
}"], 3 #object[cljs$core$inc "function cljs$core$inc(x){
return (x + (1));
}"], 4 #object[cljs$core$inc "function cljs$core$inc(x){
return (x + (1));
}"], 5 #object[cljs$core$inc "function cljs$core$inc(x){
return (x + (1));
}"], 6 #object[cljs$core$inc "function cljs$core$inc(x){
return (x + (1));
}"], 7 #object[cljs$core$inc "function cljs$core$inc(x){
return (x + (1));
}"], 8 #object[cljs$core$inc "function cljs$core$inc(x){
return (x + (1));
}"], 9 #object[cljs$core$inc "function cljs$core$inc(x){
return (x + (1));
}"], 10 #object[cljs$core$inc "function cljs$core$inc(x){
return (x + (1));
}"], 11 #object[cljs$core$inc "function cljs$core$inc(x){
return (x + (1));
}"], 12 #object[cljs$core$inc "function cljs$core$inc(x){
return (x + (1));
}"], 13 #object[cljs$core$in

It just cuts off at a certain point, as if STDOUT was not flushed correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment