Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 024e3f6

Browse filesBrowse files
committed
Add a test case to test for multibyte encoding
1 parent 54340cb commit 024e3f6
Copy full SHA for 024e3f6

File tree

Expand file treeCollapse file tree

1 file changed

+8
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+8
-1
lines changed

‎test/cider-eval-test.el

Copy file name to clipboardExpand all lines: test/cider-eval-test.el
+8-1Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@
3737
(filename (make-temp-file "abc.clj")))
3838
(with-temp-file filename
3939
(dotimes (_ 60) (insert "x")))
40-
(expect (cider-provide-file filename) :not :to-match "\n"))))
40+
(expect (cider-provide-file filename) :not :to-match "\n")))
41+
(it "can handle multibyte characters"
42+
(let ((cider-sideloader-dir "/tmp")
43+
(default-directory "/tmp")
44+
(filename (make-temp-file "abc.clj")))
45+
(with-temp-file filename
46+
(insert "🍻"))
47+
(expect (cider-provide-file filename) :to-equal "8J+Nuw=="))))
4148

4249
(provide 'cider-eval-tests)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.