emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 1e2e48c: Skip a json.c test unless functions being


From: João Távora
Subject: [Emacs-diffs] master 1e2e48c: Skip a json.c test unless functions being tested exist
Date: Mon, 18 Jun 2018 22:02:27 -0400 (EDT)

branch: master
commit 1e2e48c13c3902c251360bce83a5fa212fd4b825
Author: João Távora <address@hidden>
Commit: João Távora <address@hidden>

    Skip a json.c test unless functions being tested exist
    
    * test/src/json-tests.el
    (json-parse-with-custom-null-and-false-objects): Skip this test
    unless functions being tested exist.
---
 test/src/json-tests.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/test/src/json-tests.el b/test/src/json-tests.el
index ffa6fe1..8bd679b 100644
--- a/test/src/json-tests.el
+++ b/test/src/json-tests.el
@@ -210,6 +210,8 @@ Test with both unibyte and multibyte strings."
     (should (looking-at-p (rx " [456]" eos)))))
 
 (ert-deftest json-parse-with-custom-null-and-false-objects ()
+  (skip-unless (and (fboundp 'json-serialize)
+                    (fboundp 'json-parse-string)))
   (let* ((input
           "{ \"abc\" : [9, false] , \"def\" : null }")
          (output



reply via email to

[Prev in Thread] Current Thread [Next in Thread]