Author: Mason Wright
Email: [email protected]
Date: Tue, 24 Jun 2025 20:44:14 -0600
tests/main.cc
Added tests to parser
Commits
Diff "; - - std::stringstream ss(html); - std::unique_ptr document = parseStream(ss); - - // Ensure the only child of root is html - Node* current = document->children[0].get(); - - checkNode(current, "textarea", 1, "", {}, {{}}); - - current = current->children[0].get(); - checkNode(current, "text", 0, "", {}, {{"innerText",""}}); - } -} -
"; std::stringstream ss(html); std::unique_ptr document = parseStream(ss); // Ensure the only child of root is html Node* current = document->children[0].get(); checkNode(current, "textarea", 1, "", {}, {{}}); current = current->children[0].get(); checkNode(current, "text", 0, "", {}, {{"innerText",""}}); } }