From: John Benediktsson Date: Tue, 22 Apr 2014 03:43:04 +0000 (-0700) Subject: html.entities: add a test to show "&". X-Git-Tag: 0.97~646 X-Git-Url: https://gitweb.factorcode.org/gitweb.cgi?p=factor.git;a=commitdiff_plain;h=bcb14d7a22a90dda159350d76da8cdc459fe0428 html.entities: add a test to show "&". --- diff --git a/extra/html/entities/entities-tests.factor b/extra/html/entities/entities-tests.factor index 5e680f4fd1..a9cdbd1a4d 100644 --- a/extra/html/entities/entities-tests.factor +++ b/extra/html/entities/entities-tests.factor @@ -4,6 +4,8 @@ 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 { "&" } [ "&" html-escape ] unit-test { "<foo>" } [ "" html-escape ] unit-test