~racb/ubuntu/precise/modsecurity-apache/988819

« back to all changes in this revision

Viewing changes to tests/tfn/trimLeft.t

  • Committer: Bazaar Package Importer
  • Author(s): Alberto Gonzalez Iniesta
  • Date: 2011-06-16 13:58:40 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20110616135840-x412l74sn2fb9xkj
Tags: 2.6.0-1
* New upstream release (Closes: #627858, #607763)
* Bumped Standards-Version to 3.9.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
### Empty
 
2
{
 
3
        type => "tfn",
 
4
        name => "trimLeft",
 
5
        input => "",
 
6
        output => "",
 
7
        ret => 0,
 
8
},
 
9
 
 
10
### Nothing
 
11
{
 
12
        type => "tfn",
 
13
        name => "trimLeft",
 
14
        input => "TestCase",
 
15
        output => "TestCase",
 
16
        ret => 0,
 
17
},
 
18
{
 
19
        type => "tfn",
 
20
        name => "trimLeft",
 
21
        input => "Test\0Case",
 
22
        output => "Test\0Case",
 
23
        ret => 0,
 
24
},
 
25
{
 
26
        type => "tfn",
 
27
        name => "trimLeft",
 
28
        input => "TestCase    ",
 
29
        output => "TestCase    ",
 
30
        ret => 0,
 
31
},
 
32
 
 
33
 
 
34
### Basics
 
35
{
 
36
        type => "tfn",
 
37
        name => "trimLeft",
 
38
        input => "    TestCase",
 
39
        output => "TestCase",
 
40
        ret => 1,
 
41
},
 
42
{
 
43
        type => "tfn",
 
44
        name => "trimLeft",
 
45
        input => "    TestCase    ",
 
46
        output => "TestCase    ",
 
47
        ret => 1,
 
48
},
 
49
{
 
50
        type => "tfn",
 
51
        name => "trimLeft",
 
52
        input => "    Test   Case    ",
 
53
        output => "Test   Case    ",
 
54
        ret => 1,
 
55
},
 
56
{
 
57
        type => "tfn",
 
58
        name => "trimLeft",
 
59
        input => "    Test \0 Case    ",
 
60
        output => "Test \0 Case    ",
 
61
        ret => 1,
 
62
},
 
63
{
 
64
        type => "tfn",
 
65
        name => "trimLeft",
 
66
        input => "         Test \0 Case                    \r\n  ",
 
67
        output => "Test \0 Case                    \r\n  ",
 
68
        ret => 1,
 
69
},