Update wasm test to reflect C++ grammar changes

This commit is contained in:
Max Brunsfeld 2019-07-05 12:13:38 -07:00
parent a9ca6ff73c
commit f2b13721d9

View file

@ -145,7 +145,12 @@ describe("Parser", () => {
tree = parser.parse("const char *s = R\"EOF(HELLO WORLD)EOF\";");
assert.equal(
tree.rootNode.toString(),
'(translation_unit (declaration (type_qualifier) (primitive_type) (init_declarator (pointer_declarator (identifier)) (raw_string_literal))))'
'(translation_unit (declaration ' +
'(type_qualifier) ' +
'type: (primitive_type) ' +
'declarator: (init_declarator ' +
'declarator: (pointer_declarator declarator: (identifier)) ' +
'value: (raw_string_literal))))'
);
}).timeout(5000);