Blame tests/tfn/cssDecode.t
|
Packit Service |
384592 |
### Empty
|
|
Packit Service |
384592 |
{
|
|
Packit Service |
384592 |
type => "tfn",
|
|
Packit Service |
384592 |
name => "cssDecode",
|
|
Packit Service |
384592 |
input => "",
|
|
Packit Service |
384592 |
output => "",
|
|
Packit Service |
384592 |
ret => 0,
|
|
Packit Service |
384592 |
},
|
|
Packit Service |
384592 |
|
|
Packit Service |
384592 |
### Nothing
|
|
Packit Service |
384592 |
{
|
|
Packit Service |
384592 |
type => "tfn",
|
|
Packit Service |
384592 |
name => "cssDecode",
|
|
Packit Service |
384592 |
input => "TestCase",
|
|
Packit Service |
384592 |
output => "TestCase",
|
|
Packit Service |
384592 |
ret => 0,
|
|
Packit Service |
384592 |
},
|
|
Packit Service |
384592 |
{
|
|
Packit Service |
384592 |
type => "tfn",
|
|
Packit Service |
384592 |
name => "cssDecode",
|
|
Packit Service |
384592 |
input => "Test\0Case",
|
|
Packit Service |
384592 |
output => "Test\0Case",
|
|
Packit Service |
384592 |
ret => 0,
|
|
Packit Service |
384592 |
},
|
|
Packit Service |
384592 |
|
|
Packit Service |
384592 |
### Valid Sequences
|
|
Packit Service |
384592 |
{
|
|
Packit Service |
384592 |
type => "tfn",
|
|
Packit Service |
384592 |
name => "cssDecode",
|
|
Packit Service |
384592 |
input => "test\\a\\b\\f\\n\\r\\t\\v\\?\\'\\\"\\0\\12\\123\\1234\\12345\\123456\\ff01\\ff5e\\\n\\0 string",
|
|
Packit Service |
384592 |
output => qq(test\x0a\x0b\x0fnrtv?'"\x00\x12\x23\x34\x45\x56\x21\x7e\x00 string),
|
|
Packit Service |
384592 |
ret => 1,
|
|
Packit Service |
384592 |
},
|
|
Packit Service |
384592 |
|
|
Packit Service |
384592 |
### Invalid Sequences
|
|
Packit Service |
384592 |
# Trailing escape == line continuation with no line following (ie nothing)
|
|
Packit Service |
384592 |
{
|
|
Packit Service |
384592 |
type => "tfn",
|
|
Packit Service |
384592 |
name => "cssDecode",
|
|
Packit Service |
384592 |
input => "test\\",
|
|
Packit Service |
384592 |
output => "test",
|
|
Packit Service |
384592 |
ret => 1,
|
|
Packit Service |
384592 |
},
|
|
Packit Service |
384592 |
|
|
Packit Service |
384592 |
# Edge cases
|
|
Packit Service |
384592 |
# "\1A" == "\x1A"
|
|
Packit Service |
384592 |
# "\1 A" == "\x01A"
|
|
Packit Service |
384592 |
# "\1234567" == "\x567"
|
|
Packit Service |
384592 |
# "\123456 7" == "\x567"
|
|
Packit Service |
384592 |
# "\1x" == "\x01x"
|
|
Packit Service |
384592 |
# "\1 x" == "\x01 x"
|
|
Packit Service |
384592 |
{
|
|
Packit Service |
384592 |
type => "tfn",
|
|
Packit Service |
384592 |
name => "cssDecode",
|
|
Packit Service |
384592 |
input => "\\1A\\1 A\\1234567\\123456 7\\1x\\1 x",
|
|
Packit Service |
384592 |
output => "\x1A\x01A\x567\x567\x01x\x01x",
|
|
Packit Service |
384592 |
ret => 1,
|
|
Packit Service |
384592 |
},
|