Blame tests/tfn/htmlEntityDecode.t

Packit 284210
### Empty
Packit 284210
{
Packit 284210
	type => "tfn",
Packit 284210
	name => "htmlEntityDecode",
Packit 284210
	input => "",
Packit 284210
	output => "",
Packit 284210
	ret => 0,
Packit 284210
},
Packit 284210
Packit 284210
### Nothing
Packit 284210
{
Packit 284210
	type => "tfn",
Packit 284210
	name => "htmlEntityDecode",
Packit 284210
	input => "TestCase",
Packit 284210
	output => "TestCase",
Packit 284210
	ret => 0,
Packit 284210
},
Packit 284210
{
Packit 284210
	type => "tfn",
Packit 284210
	name => "htmlEntityDecode",
Packit 284210
	input => "Test\0Case",
Packit 284210
	output => "Test\0Case",
Packit 284210
	ret => 0,
Packit 284210
},
Packit 284210
Packit 284210
### Valid
Packit 284210
# With ;
Packit 284210
{
Packit 284210
	type => "tfn",
Packit 284210
	name => "htmlEntityDecode",
Packit 284210
	input => "��  � \0d"&<> ",
Packit 284210
	output => "\0\0\x20\x20\0\x20\0\x64\"&<>\xa0",
Packit 284210
	ret => 1,
Packit 284210
},
Packit 284210
# Without ;
Packit 284210
{
Packit 284210
	type => "tfn",
Packit 284210
	name => "htmlEntityDecode",
Packit 284210
	input => "&#x0&#X0&#x20&#X20&#0&#32\0&#100&quot&amp&lt&gt&nbsp",
Packit 284210
	output => "\0\0\x20\x20\0\x20\0\x64\"&<>\xa0",
Packit 284210
	ret => 1,
Packit 284210
},
Packit 284210
Packit 284210
### Invalid
Packit 284210
{
Packit 284210
	type => "tfn",
Packit 284210
	name => "htmlEntityDecode",
Packit 284210
	input => "&#x;;&#X;;&#xg0;;&#;;\0&#a2;&#3a&#a00;&#1a0;
;&foo;",
Packit 284210
	output => "&#x;;&#X;;&#xg0;\x02g;&#;;\0&#a2;\x03a&#a00;\x01a0;\x0aa;&foo;",
Packit 284210
	ret => 1,
Packit 284210
},
Packit 284210
{
Packit 284210
	type => "tfn",
Packit 284210
	name => "htmlEntityDecode",
Packit 284210
	input => "&#xg&#Xg&#xg0&#X2g&#a\0&#a2&#3a&#a00&#1a0&#10a&foo",
Packit 284210
	output => "&#xg&#Xg&#xg0\x02g&#a\0&#a2\x03a&#a00\x01a0\x0aa&foo",
Packit 284210
	ret => 1,
Packit 284210
},