From b06747b6ca01a868102af30e5db8dc76ac8620cf Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Wed, 9 May 2018 14:14:42 -0700 Subject: [PATCH] Remove stale unit tests Co-Authored-By: Rick Winfrey --- test/runtime/parser_test.cc | 47 ------------------------------------- 1 file changed, 47 deletions(-) diff --git a/test/runtime/parser_test.cc b/test/runtime/parser_test.cc index 4481ece7..204eedbd 100644 --- a/test/runtime/parser_test.cc +++ b/test/runtime/parser_test.cc @@ -206,53 +206,6 @@ describe("Parser", [&]() { }); }); - describe("handling extra tokens", [&]() { - describe("when the token appears as part of a grammar rule", [&]() { - it("incorporates it into the tree", [&]() { - ts_document_set_language(document, load_real_language("javascript")); - set_text("fn()\n"); - - assert_root_node( - "(program (expression_statement (call_expression (identifier) (arguments))))"); - }); - }); - - describe("when the token appears somewhere else", [&]() { - it("incorporates it into the tree", [&]() { - ts_document_set_language(document, load_real_language("javascript")); - set_text( - "fn()\n" - " .otherFn();"); - - assert_root_node( - "(program (expression_statement (call_expression " - "(member_expression " - "(call_expression (identifier) (arguments)) " - "(property_identifier)) " - "(arguments))))"); - }); - }); - - describe("when several extra tokens appear in a row", [&]() { - it("incorporates them into the tree", [&]() { - ts_document_set_language(document, load_real_language("javascript")); - set_text( - "fn()\n\n" - "// This is a comment" - "\n\n" - ".otherFn();"); - - assert_root_node( - "(program (expression_statement (call_expression " - "(member_expression " - "(call_expression (identifier) (arguments)) " - "(comment) " - "(property_identifier)) " - "(arguments))))"); - }); - }); - }); - describe("editing", [&]() { describe("creating new tokens near the end of the input", [&]() { it("updates the parse tree and re-reads only the changed portion of the text", [&]() {