Fossil SCM

Adapt glob tests to changes from [dc86831179].

florian 2024-09-10 06:26 trunk
Commit d663a324515d19f7302ff3c424afca534ff65ee1b61afa29bb044b08d774c63d
1 file changed +20 -20
+20 -20
--- test/glob.test
+++ test/glob.test
@@ -30,40 +30,40 @@
3030
}
3131
3232
glob-parse 100 test test [string map [list \r\n \n] \
3333
{SQL expression: (x GLOB 'test')
3434
pattern[0] = [test]
35
-1 test}]
35
+1 1 test}]
3636
3737
glob-parse 101 "one two" one [string map [list \r\n \n] \
3838
{SQL expression: (x GLOB 'one' OR x GLOB 'two')
3939
pattern[0] = [one]
4040
pattern[1] = [two]
41
-1 one}]
41
+1 1 one}]
4242
4343
glob-parse 102 t* test [string map [list \r\n \n] \
4444
{SQL expression: (x GLOB 't*')
4545
pattern[0] = [t*]
46
-1 test}]
46
+1 1 test}]
4747
4848
glob-parse 103 "o* two" one [string map [list \r\n \n] \
4949
{SQL expression: (x GLOB 'o*' OR x GLOB 'two')
5050
pattern[0] = [o*]
5151
pattern[1] = [two]
52
-1 one}]
52
+1 1 one}]
5353
5454
glob-parse 104 {"o* two" "three four"} "one two" [string map [list \r\n \n] \
5555
{SQL expression: (x GLOB 'o* two' OR x GLOB 'three four')
5656
pattern[0] = [o* two]
5757
pattern[1] = [three four]
58
-1 one two}]
58
+1 1 one two}]
5959
6060
glob-parse 105 {"o* two" "three four"} "two one" [string map [list \r\n \n] \
6161
{SQL expression: (x GLOB 'o* two' OR x GLOB 'three four')
6262
pattern[0] = [o* two]
6363
pattern[1] = [three four]
64
-0 two one}]
64
+0 0 two one}]
6565
6666
glob-parse 106 "\"o*\ntwo\" \"three\nfour\"" "one\ntwo" \
6767
[string map [list \r\n \n] \
6868
{SQL expression: (x GLOB 'o*
6969
two' OR x GLOB 'three
@@ -70,11 +70,11 @@
7070
four')
7171
pattern[0] = [o*
7272
two]
7373
pattern[1] = [three
7474
four]
75
-1 one
75
+1 1 one
7676
two}]
7777
7878
glob-parse 107 "\"o*\ntwo\" \"three\nfour\"" "two\none" \
7979
[string map [list \r\n \n] \
8080
{SQL expression: (x GLOB 'o*
@@ -82,11 +82,11 @@
8282
four')
8383
pattern[0] = [o*
8484
two]
8585
pattern[1] = [three
8686
four]
87
-0 two
87
+0 0 two
8888
one}]
8989
9090
glob-parse 108 "\"o*\rtwo\" \"three\rfour\"" "one\rtwo" \
9191
[string map [list \r\n \n] \
9292
{SQL expression: (x GLOB 'o*
@@ -94,11 +94,11 @@
9494
four')
9595
pattern[0] = [o*
9696
two]
9797
pattern[1] = [three
9898
four]
99
-1 one
99
+1 1 one
100100
two}]
101101
102102
glob-parse 109 "\"o*\rtwo\" \"three\rfour\"" "two\rone" \
103103
[string map [list \r\n \n] \
104104
{SQL expression: (x GLOB 'o*
@@ -106,11 +106,11 @@
106106
four')
107107
pattern[0] = [o*
108108
two]
109109
pattern[1] = [three
110110
four]
111
-0 two
111
+0 0 two
112112
one}]
113113
114114
glob-parse 110 "'o*\ntwo' 'three\nfour'" "one\ntwo" \
115115
[string map [list \r\n \n] \
116116
{SQL expression: (x GLOB 'o*
@@ -118,11 +118,11 @@
118118
four')
119119
pattern[0] = [o*
120120
two]
121121
pattern[1] = [three
122122
four]
123
-1 one
123
+1 1 one
124124
two}]
125125
126126
glob-parse 111 "'o*\ntwo' 'three\nfour'" "two\none" \
127127
[string map [list \r\n \n] \
128128
{SQL expression: (x GLOB 'o*
@@ -130,61 +130,61 @@
130130
four')
131131
pattern[0] = [o*
132132
two]
133133
pattern[1] = [three
134134
four]
135
-0 two
135
+0 0 two
136136
one}]
137137
138138
glob-parse 112 "\"'o*' 'two'\" \"'three' 'four'\"" "'one' 'two'" \
139139
[string map [list \r\n \n] \
140140
{SQL expression: (x GLOB '''o*'' ''two''' OR x GLOB '''three'' ''four''')
141141
pattern[0] = ['o*' 'two']
142142
pattern[1] = ['three' 'four']
143
-1 'one' 'two'}]
143
+1 1 'one' 'two'}]
144144
145145
glob-parse 113 "\"'o*' 'two'\" \"'three' 'four'\"" "two one" \
146146
[string map [list \r\n \n] \
147147
{SQL expression: (x GLOB '''o*'' ''two''' OR x GLOB '''three'' ''four''')
148148
pattern[0] = ['o*' 'two']
149149
pattern[1] = ['three' 'four']
150
-0 two one}]
150
+0 0 two one}]
151151
152152
glob-parse 114 o*,two one [string map [list \r\n \n] \
153153
{SQL expression: (x GLOB 'o*' OR x GLOB 'two')
154154
pattern[0] = [o*]
155155
pattern[1] = [two]
156
-1 one}]
156
+1 1 one}]
157157
158158
glob-parse 115 "o*,two three,four" "one two" [string map [list \r\n \n] \
159159
{SQL expression: (x GLOB 'o*' OR x GLOB 'two' OR x GLOB 'three' OR x GLOB 'four')
160160
pattern[0] = [o*]
161161
pattern[1] = [two]
162162
pattern[2] = [three]
163163
pattern[3] = [four]
164
-1 one two}]
164
+1 1 one two}]
165165
166166
glob-parse 116 'o*,two' one [string map [list \r\n \n] \
167167
{SQL expression: (x GLOB 'o*,two')
168168
pattern[0] = [o*,two]
169
-0 one}]
169
+0 0 one}]
170170
171171
glob-parse 117 'o*,two' one,two [string map [list \r\n \n] \
172172
{SQL expression: (x GLOB 'o*,two')
173173
pattern[0] = [o*,two]
174
-1 one,two}]
174
+1 1 one,two}]
175175
176176
glob-parse 118 "'o*,two three,four'" "one two three,four" \
177177
[string map [list \r\n \n] \
178178
{SQL expression: (x GLOB 'o*,two three,four')
179179
pattern[0] = [o*,two three,four]
180
-0 one two three,four}]
180
+0 0 one two three,four}]
181181
182182
glob-parse 119 "'o*,two three,four'" "one,two three,four" \
183183
[string map [list \r\n \n] \
184184
{SQL expression: (x GLOB 'o*,two three,four')
185185
pattern[0] = [o*,two three,four]
186
-1 one,two three,four}]
186
+1 1 one,two three,four}]
187187
188188
###############################################################################
189189
190190
test_cleanup
191191
--- test/glob.test
+++ test/glob.test
@@ -30,40 +30,40 @@
30 }
31
32 glob-parse 100 test test [string map [list \r\n \n] \
33 {SQL expression: (x GLOB 'test')
34 pattern[0] = [test]
35 1 test}]
36
37 glob-parse 101 "one two" one [string map [list \r\n \n] \
38 {SQL expression: (x GLOB 'one' OR x GLOB 'two')
39 pattern[0] = [one]
40 pattern[1] = [two]
41 1 one}]
42
43 glob-parse 102 t* test [string map [list \r\n \n] \
44 {SQL expression: (x GLOB 't*')
45 pattern[0] = [t*]
46 1 test}]
47
48 glob-parse 103 "o* two" one [string map [list \r\n \n] \
49 {SQL expression: (x GLOB 'o*' OR x GLOB 'two')
50 pattern[0] = [o*]
51 pattern[1] = [two]
52 1 one}]
53
54 glob-parse 104 {"o* two" "three four"} "one two" [string map [list \r\n \n] \
55 {SQL expression: (x GLOB 'o* two' OR x GLOB 'three four')
56 pattern[0] = [o* two]
57 pattern[1] = [three four]
58 1 one two}]
59
60 glob-parse 105 {"o* two" "three four"} "two one" [string map [list \r\n \n] \
61 {SQL expression: (x GLOB 'o* two' OR x GLOB 'three four')
62 pattern[0] = [o* two]
63 pattern[1] = [three four]
64 0 two one}]
65
66 glob-parse 106 "\"o*\ntwo\" \"three\nfour\"" "one\ntwo" \
67 [string map [list \r\n \n] \
68 {SQL expression: (x GLOB 'o*
69 two' OR x GLOB 'three
@@ -70,11 +70,11 @@
70 four')
71 pattern[0] = [o*
72 two]
73 pattern[1] = [three
74 four]
75 1 one
76 two}]
77
78 glob-parse 107 "\"o*\ntwo\" \"three\nfour\"" "two\none" \
79 [string map [list \r\n \n] \
80 {SQL expression: (x GLOB 'o*
@@ -82,11 +82,11 @@
82 four')
83 pattern[0] = [o*
84 two]
85 pattern[1] = [three
86 four]
87 0 two
88 one}]
89
90 glob-parse 108 "\"o*\rtwo\" \"three\rfour\"" "one\rtwo" \
91 [string map [list \r\n \n] \
92 {SQL expression: (x GLOB 'o*
@@ -94,11 +94,11 @@
94 four')
95 pattern[0] = [o*
96 two]
97 pattern[1] = [three
98 four]
99 1 one
100 two}]
101
102 glob-parse 109 "\"o*\rtwo\" \"three\rfour\"" "two\rone" \
103 [string map [list \r\n \n] \
104 {SQL expression: (x GLOB 'o*
@@ -106,11 +106,11 @@
106 four')
107 pattern[0] = [o*
108 two]
109 pattern[1] = [three
110 four]
111 0 two
112 one}]
113
114 glob-parse 110 "'o*\ntwo' 'three\nfour'" "one\ntwo" \
115 [string map [list \r\n \n] \
116 {SQL expression: (x GLOB 'o*
@@ -118,11 +118,11 @@
118 four')
119 pattern[0] = [o*
120 two]
121 pattern[1] = [three
122 four]
123 1 one
124 two}]
125
126 glob-parse 111 "'o*\ntwo' 'three\nfour'" "two\none" \
127 [string map [list \r\n \n] \
128 {SQL expression: (x GLOB 'o*
@@ -130,61 +130,61 @@
130 four')
131 pattern[0] = [o*
132 two]
133 pattern[1] = [three
134 four]
135 0 two
136 one}]
137
138 glob-parse 112 "\"'o*' 'two'\" \"'three' 'four'\"" "'one' 'two'" \
139 [string map [list \r\n \n] \
140 {SQL expression: (x GLOB '''o*'' ''two''' OR x GLOB '''three'' ''four''')
141 pattern[0] = ['o*' 'two']
142 pattern[1] = ['three' 'four']
143 1 'one' 'two'}]
144
145 glob-parse 113 "\"'o*' 'two'\" \"'three' 'four'\"" "two one" \
146 [string map [list \r\n \n] \
147 {SQL expression: (x GLOB '''o*'' ''two''' OR x GLOB '''three'' ''four''')
148 pattern[0] = ['o*' 'two']
149 pattern[1] = ['three' 'four']
150 0 two one}]
151
152 glob-parse 114 o*,two one [string map [list \r\n \n] \
153 {SQL expression: (x GLOB 'o*' OR x GLOB 'two')
154 pattern[0] = [o*]
155 pattern[1] = [two]
156 1 one}]
157
158 glob-parse 115 "o*,two three,four" "one two" [string map [list \r\n \n] \
159 {SQL expression: (x GLOB 'o*' OR x GLOB 'two' OR x GLOB 'three' OR x GLOB 'four')
160 pattern[0] = [o*]
161 pattern[1] = [two]
162 pattern[2] = [three]
163 pattern[3] = [four]
164 1 one two}]
165
166 glob-parse 116 'o*,two' one [string map [list \r\n \n] \
167 {SQL expression: (x GLOB 'o*,two')
168 pattern[0] = [o*,two]
169 0 one}]
170
171 glob-parse 117 'o*,two' one,two [string map [list \r\n \n] \
172 {SQL expression: (x GLOB 'o*,two')
173 pattern[0] = [o*,two]
174 1 one,two}]
175
176 glob-parse 118 "'o*,two three,four'" "one two three,four" \
177 [string map [list \r\n \n] \
178 {SQL expression: (x GLOB 'o*,two three,four')
179 pattern[0] = [o*,two three,four]
180 0 one two three,four}]
181
182 glob-parse 119 "'o*,two three,four'" "one,two three,four" \
183 [string map [list \r\n \n] \
184 {SQL expression: (x GLOB 'o*,two three,four')
185 pattern[0] = [o*,two three,four]
186 1 one,two three,four}]
187
188 ###############################################################################
189
190 test_cleanup
191
--- test/glob.test
+++ test/glob.test
@@ -30,40 +30,40 @@
30 }
31
32 glob-parse 100 test test [string map [list \r\n \n] \
33 {SQL expression: (x GLOB 'test')
34 pattern[0] = [test]
35 1 1 test}]
36
37 glob-parse 101 "one two" one [string map [list \r\n \n] \
38 {SQL expression: (x GLOB 'one' OR x GLOB 'two')
39 pattern[0] = [one]
40 pattern[1] = [two]
41 1 1 one}]
42
43 glob-parse 102 t* test [string map [list \r\n \n] \
44 {SQL expression: (x GLOB 't*')
45 pattern[0] = [t*]
46 1 1 test}]
47
48 glob-parse 103 "o* two" one [string map [list \r\n \n] \
49 {SQL expression: (x GLOB 'o*' OR x GLOB 'two')
50 pattern[0] = [o*]
51 pattern[1] = [two]
52 1 1 one}]
53
54 glob-parse 104 {"o* two" "three four"} "one two" [string map [list \r\n \n] \
55 {SQL expression: (x GLOB 'o* two' OR x GLOB 'three four')
56 pattern[0] = [o* two]
57 pattern[1] = [three four]
58 1 1 one two}]
59
60 glob-parse 105 {"o* two" "three four"} "two one" [string map [list \r\n \n] \
61 {SQL expression: (x GLOB 'o* two' OR x GLOB 'three four')
62 pattern[0] = [o* two]
63 pattern[1] = [three four]
64 0 0 two one}]
65
66 glob-parse 106 "\"o*\ntwo\" \"three\nfour\"" "one\ntwo" \
67 [string map [list \r\n \n] \
68 {SQL expression: (x GLOB 'o*
69 two' OR x GLOB 'three
@@ -70,11 +70,11 @@
70 four')
71 pattern[0] = [o*
72 two]
73 pattern[1] = [three
74 four]
75 1 1 one
76 two}]
77
78 glob-parse 107 "\"o*\ntwo\" \"three\nfour\"" "two\none" \
79 [string map [list \r\n \n] \
80 {SQL expression: (x GLOB 'o*
@@ -82,11 +82,11 @@
82 four')
83 pattern[0] = [o*
84 two]
85 pattern[1] = [three
86 four]
87 0 0 two
88 one}]
89
90 glob-parse 108 "\"o*\rtwo\" \"three\rfour\"" "one\rtwo" \
91 [string map [list \r\n \n] \
92 {SQL expression: (x GLOB 'o*
@@ -94,11 +94,11 @@
94 four')
95 pattern[0] = [o*
96 two]
97 pattern[1] = [three
98 four]
99 1 1 one
100 two}]
101
102 glob-parse 109 "\"o*\rtwo\" \"three\rfour\"" "two\rone" \
103 [string map [list \r\n \n] \
104 {SQL expression: (x GLOB 'o*
@@ -106,11 +106,11 @@
106 four')
107 pattern[0] = [o*
108 two]
109 pattern[1] = [three
110 four]
111 0 0 two
112 one}]
113
114 glob-parse 110 "'o*\ntwo' 'three\nfour'" "one\ntwo" \
115 [string map [list \r\n \n] \
116 {SQL expression: (x GLOB 'o*
@@ -118,11 +118,11 @@
118 four')
119 pattern[0] = [o*
120 two]
121 pattern[1] = [three
122 four]
123 1 1 one
124 two}]
125
126 glob-parse 111 "'o*\ntwo' 'three\nfour'" "two\none" \
127 [string map [list \r\n \n] \
128 {SQL expression: (x GLOB 'o*
@@ -130,61 +130,61 @@
130 four')
131 pattern[0] = [o*
132 two]
133 pattern[1] = [three
134 four]
135 0 0 two
136 one}]
137
138 glob-parse 112 "\"'o*' 'two'\" \"'three' 'four'\"" "'one' 'two'" \
139 [string map [list \r\n \n] \
140 {SQL expression: (x GLOB '''o*'' ''two''' OR x GLOB '''three'' ''four''')
141 pattern[0] = ['o*' 'two']
142 pattern[1] = ['three' 'four']
143 1 1 'one' 'two'}]
144
145 glob-parse 113 "\"'o*' 'two'\" \"'three' 'four'\"" "two one" \
146 [string map [list \r\n \n] \
147 {SQL expression: (x GLOB '''o*'' ''two''' OR x GLOB '''three'' ''four''')
148 pattern[0] = ['o*' 'two']
149 pattern[1] = ['three' 'four']
150 0 0 two one}]
151
152 glob-parse 114 o*,two one [string map [list \r\n \n] \
153 {SQL expression: (x GLOB 'o*' OR x GLOB 'two')
154 pattern[0] = [o*]
155 pattern[1] = [two]
156 1 1 one}]
157
158 glob-parse 115 "o*,two three,four" "one two" [string map [list \r\n \n] \
159 {SQL expression: (x GLOB 'o*' OR x GLOB 'two' OR x GLOB 'three' OR x GLOB 'four')
160 pattern[0] = [o*]
161 pattern[1] = [two]
162 pattern[2] = [three]
163 pattern[3] = [four]
164 1 1 one two}]
165
166 glob-parse 116 'o*,two' one [string map [list \r\n \n] \
167 {SQL expression: (x GLOB 'o*,two')
168 pattern[0] = [o*,two]
169 0 0 one}]
170
171 glob-parse 117 'o*,two' one,two [string map [list \r\n \n] \
172 {SQL expression: (x GLOB 'o*,two')
173 pattern[0] = [o*,two]
174 1 1 one,two}]
175
176 glob-parse 118 "'o*,two three,four'" "one two three,four" \
177 [string map [list \r\n \n] \
178 {SQL expression: (x GLOB 'o*,two three,four')
179 pattern[0] = [o*,two three,four]
180 0 0 one two three,four}]
181
182 glob-parse 119 "'o*,two three,four'" "one,two three,four" \
183 [string map [list \r\n \n] \
184 {SQL expression: (x GLOB 'o*,two three,four')
185 pattern[0] = [o*,two three,four]
186 1 1 one,two three,four}]
187
188 ###############################################################################
189
190 test_cleanup
191

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button