File: length.t

package info (click to toggle)
modsecurity-apache 2.9.12-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,444 kB
  • sloc: ansic: 53,551; sh: 5,249; perl: 2,341; cpp: 1,930; makefile: 618; xml: 6
file content (44 lines) | stat: -rw-r--r-- 580 bytes parent folder | download | duplicates (14)
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
### Empty
{
	type => "tfn",
	name => "length",
	input => "",
	output => "0",
	ret => 1,
},


### Basic normal and large
{
	type => "tfn",
	name => "length",
	input => "0123456789abcdef",
	output => "16",
	ret => 1,
},
# ENH: This sometimes fails w/4096 length
#{
#	type => "tfn",
#	name => "length",
#	input => ('x' x 8192),
#	output => "8192",
#	ret => 1,
#},

### With TAB
{
	type => "tfn",
	name => "length",
	input => "0123456789\tabcdef",
	output => "17",
	ret => 1,
},

### With NUL
{
	type => "tfn",
	name => "length",
	input => "Test\0Case",
	output => "9",
	ret => 1,
},