From 741fb3c5a150ba9974f41d53d277fc61bbeeafa8 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Sat, 1 Dec 2018 21:26:34 -0800 Subject: [PATCH] Fix test now that JSON grammar has slightly changed --- test/runtime/parser_test.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/runtime/parser_test.cc b/test/runtime/parser_test.cc index c74e5b34..8766ca0b 100644 --- a/test/runtime/parser_test.cc +++ b/test/runtime/parser_test.cc @@ -166,8 +166,8 @@ describe("Parser", [&]() { describe("when there is an unexpected string at the end of a token", [&]() { it("computes the error's size and position correctly", [&]() { ts_parser_set_language(parser, load_real_language("json")); - set_text(" [123, \"hi\n, true]"); - assert_root_node("(value (array (number) (ERROR (UNEXPECTED '\\n')) (true)))"); + set_text(" [123, truue\n, true]"); + assert_root_node("(value (array (number) (ERROR (UNEXPECTED 'u')) (true)))"); }); });