#include "unity/unity.h" #include #include #include /* External wrapper for the static function under test */ extern int test_htmlCheckAutoClose(const xmlChar * newtag, const xmlChar * oldtag); void setUp(void) { /* Setup code here, or leave empty */ } void tearDown(void) { /* Cleanup code here, or leave empty */ } /* Positive tests: well-known auto-close pairs */ /* Starting a new

closes a previous

*/ void test_htmlCheckAutoClose_p_closes_p(void) { TEST_ASSERT_EQUAL_INT(1, test_htmlCheckAutoClose((const xmlChar *)"p", (const xmlChar *)"p")); } /* Starting a new

  • closes a previous
  • */ void test_htmlCheckAutoClose_li_closes_li(void) { TEST_ASSERT_EQUAL_INT(1, test_htmlCheckAutoClose((const xmlChar *)"li", (const xmlChar *)"li")); } /* Starting a new