Skip to content

Commit b96fbff

Browse files
Add test for Windows file names
1 parent 9e6d071 commit b96fbff

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/cider-error-parsing-tests.el

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@
88
(should (equal (nth 2 info) nil))
99
(should (equal (nth 3 info) 'cider-error-highlight-face)))))
1010

11+
(ert-deftest test-cider-extract-error-info-14-windows ()
12+
(let ((message "CompilerException java.lang.RuntimeException: Unable to resolve symbol: dummy in this context, compiling:(c:\\some\\test\\file\\core.clj:31)"))
13+
(let ((info (cider-extract-error-info cider-compilation-regexp message)))
14+
(should (string= (nth 0 info) "c:\\some\\test\\file\\core.clj"))
15+
(should (= (nth 1 info) 31))
16+
(should (equal (nth 2 info) nil))
17+
(should (equal (nth 3 info) 'cider-error-highlight-face)))))
18+
1119
(ert-deftest test-cider-extract-error-info-14-no-file ()
1220
(let ((message "CompilerException java.lang.RuntimeException: Unable to resolve symbol: dummy in this context, compiling:(NO_SOURCE_PATH:31)"))
1321
(let ((info (cider-extract-error-info cider-compilation-regexp message)))

0 commit comments

Comments
 (0)