Skip to content

Commit

Permalink
more tests for entities
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Aug 13, 2013
1 parent 80e5de0 commit 6833f1a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Changes
@@ -1,5 +1,5 @@

4.25 2013-08-10
4.25 2013-08-13

4.24 2013-08-08
- Added ancestors method to Mojo::DOM.
Expand Down
7 changes: 4 additions & 3 deletions t/mojo/util.t
Expand Up @@ -144,12 +144,13 @@ is decode('UTF-8', url_unescape 'foo%C3%9F%C4%80bar%E2%98%BA'),
"foo\x{df}\x{0100}bar\x{263a}", 'right url unescaped result';

# html_unescape
is html_unescape('<foo>bar<baz>&"'),
is html_unescape('<foo>bar<baz>&"'),
"<foo>bar<baz>&\"", 'right html unescaped result';

# html_unescape (special entities)
is html_unescape('foo &CounterClockwiseContourIntegral; bar &sup1baz'),
"foo \x{2233} bar \x{00b9}baz", 'right html unescaped result';
is html_unescape(
'foo &#x2603; &CounterClockwiseContourIntegral; bar &sup1baz'),
"foo ☃ \x{2233} bar \x{00b9}baz", 'right html unescaped result';

# html_unescape (multi-character entity)
is html_unescape(decode 'UTF-8', '&acE;'), "\x{223e}\x{0333}",
Expand Down

0 comments on commit 6833f1a

Please sign in to comment.