guix-commits
[Top][All Lists]
Advanced

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

01/12: tests: Fix malformed JSON.


From: guix-commits
Subject: 01/12: tests: Fix malformed JSON.
Date: Mon, 21 Dec 2020 11:48:30 -0500 (EST)

civodul pushed a commit to branch master
in repository guix.

commit 9608f4003dedd8dfe99327c15668ca1a43ebd93b
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Mon Dec 21 11:44:19 2020 +0100

    tests: Fix malformed JSON.
    
    Guile-JSON 4.3.2 would parse in spite of these typos, but 4.4.1 is
    stricter.
    
    * tests/swh.scm (%directory-entries): Add missing comma.
    * tests/cve-sample.json: Likewise.
---
 tests/cve-sample.json | 2 +-
 tests/swh.scm         | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/cve-sample.json b/tests/cve-sample.json
index 39816f9..11b7181 100644
--- a/tests/cve-sample.json
+++ b/tests/cve-sample.json
@@ -49,7 +49,7 @@
           "vulnerable" : true,
           "cpe23Uri" : "cpe:2.3:o:juniper:junos:16.1:*:*:*:*:*:*:*"
         } ]
-      } {
+      }, {
         "operator" : "OR",
         "cpe_match" : [ {
           "vulnerable" : true,
diff --git a/tests/swh.scm b/tests/swh.scm
index aef68ac..06984b2 100644
--- a/tests/swh.scm
+++ b/tests/swh.scm
@@ -33,7 +33,7 @@
   "[ { \"name\": \"one\",
        \"type\": \"regular\",
        \"length\": 123,
-       \"dir_id\": 1 }
+       \"dir_id\": 1 },
      { \"name\": \"two\",
        \"type\": \"regular\",
        \"length\": 456,



reply via email to

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