Don't store text on documents

This commit is contained in:
Max Brunsfeld 2014-02-20 18:38:31 -08:00
parent 6ed6aa05cc
commit ceee7eefd0
5 changed files with 21 additions and 13 deletions

View file

@ -12,6 +12,10 @@ describe("json", []() {
ts_document_set_parser(document, ts_parse_config_json);
});
after_each([&]() {
ts_document_free(document);
});
it("parses strings", [&]() {
ts_document_set_text(document, "\"\"");
AssertThat(string(ts_document_string(document)), Equals("(value (string))"));