diff options
| author | João Távora | 2018-06-19 03:02:09 +0100 |
|---|---|---|
| committer | João Távora | 2018-06-19 03:02:09 +0100 |
| commit | 1e2e48c13c3902c251360bce83a5fa212fd4b825 (patch) | |
| tree | aa0293f07071966b3d1824b333be03625ba9ab75 /test/src | |
| parent | d37d30cef5bbbdf8d17315835126d76d4681b22a (diff) | |
| download | emacs-1e2e48c13c3902c251360bce83a5fa212fd4b825.tar.gz emacs-1e2e48c13c3902c251360bce83a5fa212fd4b825.zip | |
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.
Diffstat (limited to 'test/src')
| -rw-r--r-- | test/src/json-tests.el | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/src/json-tests.el b/test/src/json-tests.el index ffa6fe19f9b..8bd679b886e 100644 --- a/test/src/json-tests.el +++ b/test/src/json-tests.el | |||
| @@ -210,6 +210,8 @@ Test with both unibyte and multibyte strings." | |||
| 210 | (should (looking-at-p (rx " [456]" eos))))) | 210 | (should (looking-at-p (rx " [456]" eos))))) |
| 211 | 211 | ||
| 212 | (ert-deftest json-parse-with-custom-null-and-false-objects () | 212 | (ert-deftest json-parse-with-custom-null-and-false-objects () |
| 213 | (skip-unless (and (fboundp 'json-serialize) | ||
| 214 | (fboundp 'json-parse-string))) | ||
| 213 | (let* ((input | 215 | (let* ((input |
| 214 | "{ \"abc\" : [9, false] , \"def\" : null }") | 216 | "{ \"abc\" : [9, false] , \"def\" : null }") |
| 215 | (output | 217 | (output |