USING: tools.test ;
IN: html.entities
{ "&" } [ "&" html-unescape ] unit-test
{ "a" } [ "a" html-unescape ] unit-test
{ "" } [ "<foo>" html-unescape ] unit-test
{ "This &that" } [ "This &that" html-unescape ] unit-test
{ "This &that" } [ "This &that" html-unescape ] unit-test
{ "a&bd" } [ "a&b<c>d" html-unescape ] unit-test
{ "&" } [ "&" html-escape ] unit-test
{ "<foo>" } [ "" html-escape ] unit-test
{ "a&b<c>d" } [ "a&bd" html-escape ] unit-test