]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix tree-sitter test (bug#63481)
authorYuan Fu <casouri@gmail.com>
Thu, 18 May 2023 21:44:26 +0000 (14:44 -0700)
committerYuan Fu <casouri@gmail.com>
Thu, 18 May 2023 21:45:15 +0000 (14:45 -0700)
* test/src/treesit-tests.el (treesit-basic-parsing): Latest json
parser doesn't return an error on empty buffer or multiple objects
anymore [1].

https://github.com/tree-sitter/tree-sitter-json/commit/40a81c01a40ac48744e0c8ccabbaba1920441199

test/src/treesit-tests.el

index 468cd221ef9afe02d8d5e9793505075e5cf9f3c2..fef603840f99122274a9a6f0753e9c8d83961d74 100644 (file)
@@ -66,7 +66,7 @@
       (should
        (equal (treesit-node-string
                (treesit-parser-root-node parser))
-              "(ERROR)"))
+              "(document)"))
 
       (insert "[1,2,3]")
       (should