unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob 23a2395823ee3b51a63dbdbc72f305bd4c9654bc 1318 bytes (raw)
name: gnu/packages/patches/emacs-json-reformat-fix-tests.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
 
Copyright © 2017 Oleg Pykhalov <go.wigust@gmail.com>

This patch fixes tests for Emacs 25.

diff --git a/test/json-reformat-test.el b/test/json-reformat-test.el
index 7de3be1..b4a4dde 100644
--- a/test/json-reformat-test.el
+++ b/test/json-reformat-test.el
@@ -58,7 +58,7 @@
 (ert-deftest json-reformat-test:string-to-string ()
   (should (string= "\"foobar\"" (json-reformat:string-to-string "foobar")))
   (should (string= "\"fo\\\"o\\nbar\"" (json-reformat:string-to-string "fo\"o\nbar")))
-  (should (string= "\"\\u2661\"" (json-reformat:string-to-string "\u2661")))
+  (should (string= "\"♡\"" (json-reformat:string-to-string "\u2661")))
 
   (should (string= "\"^(amq\\\\.gen.*|amq\\\\.default)$\"" (json-reformat:string-to-string "^(amq\\.gen.*|amq\\.default)$")))
   )
@@ -148,6 +148,6 @@ bar\"" (json-reformat:string-to-string "fo\"o\nbar")))
 [{ foo : \"bar\" }, { \"foo\" : \"baz\" }]") ;; At 3 (line)
         (json-reformat-region (point-min) (point-max)))
       (should (string=
-               "JSON parse error [Reason] Bad string format: \"doesn't start with '\\\"'!\" [Position] In buffer, line 3 (char 6)"
+               "JSON parse error [Reason] Bad string format: \"doesn't start with \`\\\"'!\" [Position] In buffer, line 3 (char 6)"
                message-string))
       )))
-- 
2.15.1


debug log:

solving 23a239582 ...
found 23a239582 in https://yhetil.org/guix-patches/87609cluzf.fsf@gmail.com/

applying [1/1] https://yhetil.org/guix-patches/87609cluzf.fsf@gmail.com/
diff --git a/gnu/packages/patches/emacs-json-reformat-fix-tests.patch b/gnu/packages/patches/emacs-json-reformat-fix-tests.patch
new file mode 100644
index 000000000..23a239582

1:21: trailing whitespace.
 
1:32: trailing whitespace.
-- 
Checking patch gnu/packages/patches/emacs-json-reformat-fix-tests.patch...
1:34: new blank line at EOF.
+
Applied patch gnu/packages/patches/emacs-json-reformat-fix-tests.patch cleanly.
warning: 3 lines add whitespace errors.

index at:
100644 23a2395823ee3b51a63dbdbc72f305bd4c9654bc	gnu/packages/patches/emacs-json-reformat-fix-tests.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).