summaryrefslogtreecommitdiff
path: root/test/lisp/json-tests.el
diff options
context:
space:
mode:
Diffstat (limited to 'test/lisp/json-tests.el')
-rw-r--r--test/lisp/json-tests.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/lisp/json-tests.el b/test/lisp/json-tests.el
index 38672de0664..c6bd295d667 100644
--- a/test/lisp/json-tests.el
+++ b/test/lisp/json-tests.el
@@ -89,7 +89,10 @@ Point is moved to beginning of the buffer."
(ert-deftest test-json-skip-whitespace ()
(json-tests--with-temp-buffer "\t\r\n\f\b { \"a\": 1 }"
(json-skip-whitespace)
- (should (equal (char-after (point)) ?{))))
+ (should (equal (char-after) ?\f)))
+ (json-tests--with-temp-buffer "\t\r\n\t { \"a\": 1 }"
+ (json-skip-whitespace)
+ (should (equal (char-after) ?{))))
;;; Paths