mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 11:16:33 +03:00
Redo build system to properly use autotools and avoid compilation with apxs util.
This commit is contained in:
40
tests/tfn/base64Encode.t
Normal file
40
tests/tfn/base64Encode.t
Normal file
@@ -0,0 +1,40 @@
|
||||
### Empty
|
||||
{
|
||||
type => "tfn",
|
||||
name => "base64Encode",
|
||||
input => "",
|
||||
output => "",
|
||||
ret => 0,
|
||||
},
|
||||
|
||||
### Test values with varying lengths to check padding
|
||||
{
|
||||
type => "tfn",
|
||||
name => "base64Encode",
|
||||
input => "TestCase",
|
||||
output => "VGVzdENhc2U=",
|
||||
ret => 1,
|
||||
},
|
||||
{
|
||||
type => "tfn",
|
||||
name => "base64Encode",
|
||||
input => "TestCase1",
|
||||
output => "VGVzdENhc2Ux",
|
||||
ret => 1,
|
||||
},
|
||||
{
|
||||
type => "tfn",
|
||||
name => "base64Encode",
|
||||
input => "TestCase12",
|
||||
output => "VGVzdENhc2UxMg==",
|
||||
ret => 1,
|
||||
},
|
||||
|
||||
### Check with a NUL
|
||||
{
|
||||
type => "tfn",
|
||||
name => "base64Encode",
|
||||
input => "Test\0Case",
|
||||
output => "VGVzdABDYXNl",
|
||||
ret => 1,
|
||||
},
|
Reference in New Issue
Block a user