File: replaceNulls.t

package info (click to toggle)
libapache-mod-security 2.5.12-1%2Bsqueeze3
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 6,220 kB
  • ctags: 2,463
  • sloc: ansic: 21,249; sh: 6,512; xml: 6,320; perl: 1,653; makefile: 191
file content (55 lines) | stat: -rw-r--r-- 758 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
### Empty
{
	type => "tfn",
	name => "replaceNulls",
	input => "",
	output => "",
	ret => 0,
},

### Nothing
{
	type => "tfn",
	name => "replaceNulls",
	input => "TestCase",
	output => "TestCase",
	ret => 0,
},


### Basics
{
	type => "tfn",
	name => "replaceNulls",
	input => "\0TestCase",
	output => " TestCase",
	ret => 1,
},
{
	type => "tfn",
	name => "replaceNulls",
	input => "Test\0Case",
	output => "Test Case",
	ret => 1,
},
{
	type => "tfn",
	name => "replaceNulls",
	input => "Test\0\0Case",
	output => "Test  Case",
	ret => 1,
},
{
	type => "tfn",
	name => "replaceNulls",
	input => "TestCase\0",
	output => "TestCase ",
	ret => 1,
},
{
	type => "tfn",
	name => "replaceNulls",
	input => "\0Test\0Case\0",
	output => " Test Case ",
	ret => 1,
},