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)))"); }); });