File: endsWith.t

package info (click to toggle)
libapache-mod-security 2.5.12-1%2Bsqueeze4
  • links: PTS
  • area: main
  • in suites: squeeze-lts
  • size: 6,292 kB
  • ctags: 2,537
  • sloc: ansic: 21,266; sh: 6,512; xml: 6,320; perl: 1,653; makefile: 191
file content (52 lines) | stat: -rw-r--r-- 649 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
### Empty
{
	type => "op",
	name => "endsWith",
	param => "",
	input => "",
	ret => 1,
},
{
	type => "op",
	name => "endsWith",
	param => "TestCase",
	input => "",
	ret => 0,
},
{
	type => "op",
	name => "endsWith",
	param => "",
	input => "TestCase",
	ret => 1,
},

### General
{
	type => "op",
	name => "endsWith",
	param => "abc",
	input => "abcdefghi",
	ret => 0,
},
{
	type => "op",
	name => "endsWith",
	param => "def",
	input => "abcdefghi",
	ret => 0,
},
{
	type => "op",
	name => "endsWith",
	param => "ghi",
	input => "abcdefghi",
	ret => 1,
},
{
	type => "op",
	name => "endsWith",
	param => "ghi",
	input => "abcdef\0ghi",
	ret => 1,
},