Skip to content

Commit 8cf3a53

Browse files
tonskyswannodette
authored andcommitted
CLJS-1102 clojure.test should print column number of exception when available
1 parent 4bcc951 commit 8cf3a53

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/cljs/cljs/test.cljs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,10 +281,10 @@
281281
in *testing-vars* as a list, then the source file and line of
282282
current assertion."
283283
[m]
284-
(let [{:keys [file line]} m]
284+
(let [{:keys [file line column]} m]
285285
(str
286286
(reverse (map #(:name (meta %)) (:testing-vars (get-current-env))))
287-
" (" file ":" line ")")))
287+
" (" file ":" line (when column (str ":" column)) ")")))
288288

289289
(defn testing-contexts-str
290290
"Returns a string representation of the current test context. Joins

0 commit comments

Comments
 (0)