Annotation of parser3/tests/results/430.processed, revision 1.5
1.1 moko 1: Content-Type: text/html
1.5 ! moko 2: Content-Length: 5550
1.1 moko 3:
4: 0. init
5: 0.1 {
6: "0":"",
7: "1":{
8: "k1":"v1",
9: "k2":"v2"
10: },
11: "2":"here?",
12: "3":"vv"
13: }
14: 0.2 "vv" {
15: "0":"b",
16: "1":"c"
17: } string array
18: 0.3 {
19: "0":"",
20: "1":{
21: "k1":"v1",
22: "k2":"v2"
23: },
24: "2":null
25: }
26: 0.4 {
27: "0":"",
28: "1":"string",
29: "2":null,
30: "5":6
31: }
32: 0.5 Exception type: number.format,
33: Source: -5,
34: Comment: out of range (negative)
35: 0.6 4 vs 6 6
1.2 moko 36: 0.7 Exception type: parser.runtime,
37: Source: bug,
38: Comment: param must be empty or 'all'
1.1 moko 39: 1. create, add vs join
40: 1.1 создаем "дырявый" массив 1.2 из него дырявый массив: {
41: "2":"1",
42: "5":"2",
43: "9":"3"
44: }
45: 1.3 из него обычный массив: {
46: "0":"1",
47: "1":"2",
48: "2":"3"
49: }
50: 1.4 если параметр хеш, перезапись значений при add: {
51: "0":"1",
52: "1":"2",
53: "2":"over"
54: }
55: 1.5 если параметр хеш, добавление значений при join: {
56: "0":"1",
57: "1":"2",
58: "2":"over",
59: "3":"over"
60: }
61: 1.6 1.6 если параметр массив, перезапись значений при add: {
62: "2":"1",
63: "5":"2",
64: "9":"3"
65: } {
66: "2":"over2",
67: "4":"over4",
68: "5":"2",
69: "9":"3"
70: }
71: 1.7 если параметр массив, добевление значений при join: {
72: "2":"1",
73: "5":"2",
74: "9":"3"
75: } {
76: "2":"1",
77: "5":"2",
78: "9":"3",
79: "10":"over2",
80: "11":"over4"
81: }
82: 2. left, right, mid, for, foreach, select
83: 2.1 {
84: "0":"v1",
85: "1":"v5"
86: }
87: 2.2 {
88: "0":"v1",
89: "1":"v5",
90: "2":"v6",
91: "3":"v8"
92: }
93: 2.3 {}
94: 2.4 {
95: "0":"v6",
96: "1":"v8"
97: }
98: 2.5 {
99: "0":"v1",
100: "1":"v5",
101: "2":"v6",
102: "3":"v8"
103: }
104: 2.6 {}
105: 2.7 {
106: "0":"v6",
107: "1":"v8"
108: }
109: 2.8 {
110: "0":"v6"
111: }
112: 2.9 {
113: "0":"v1"
114: }
1.2 moko 115: 2.91 Exception type: parser.runtime,
116: Source: mid,
117: Comment: p(-1) must be >=0
118: 2.92 Exception type: parser.runtime,
119: Source: mid,
120: Comment: n(-1) must be >=0
1.1 moko 121: 2.10 'v1','v5','v6','v8'
122: 2.11 '1','5','6','8'
123: 2.12 'v1','v5','v6','v8'
124: 2.13 'v1'[5],'v5'[6],'v6'[8],'v8'
125: 2.14 '','v1','','','','v5','v6','','v8'
126: 2.14 void,string,void,void,void,string,string,void,string
127: 2.15 v1[5],v5[6],v6[8],v8
128: 2.16 , v1, , , , v5, v6, , v8
129: 2.17 0=, 1=v1, 2=, 3=, 4=, 5=v5, 6=v6, 7=, 8=v8
130: 2.18 0= 1=v1 2= 3= 4= 2.20 {
131: "0":"v6",
132: "1":"v8"
133: }
134: 2.21 {
135: "0":"v5"
136: }
137: 2.22 {
138: "0":"v6"
139: }
140: 2.23 {
141: "0":"v5",
142: "1":"v6"
143: }
144: 2.24 {
145: "0":"v8",
146: "1":"v6"
147: }
148: 2.25 Exception type: parser.runtime,
149: Source: select,
150: Comment: called with invalid option
1.2 moko 151: 2.25 {
152: "0":"v1"
153: }
154: 2.26 {
155: "0":"v8",
156: "1":"v6"
157: }
1.1 moko 158: 3. append/insert
159: 3.1 {}
160: 3.2 Exception type: parser.runtime,
1.4 moko 161: Source: copy,
1.1 moko 162: Comment: param must be array or hash (parameter #1)
163: 3.3 Exception type: number.format,
164: Source: insert,
1.5 ! moko 165: Comment: index is out of range (negative)
1.1 moko 166: 3.4 Exception type: parser.runtime,
167: Source: insert,
168: Comment: index must be integer (parameter #1)
169: 3.5 Exception type: parser.runtime,
170: Source: insert,
171: Comment: array index 2147483647 exceeds the $MAIN:LIMITS.max_array_size (1000000)
172: 3.6 OK: 3.7 {
173: "0":"a1",
174: "1":"a2",
175: "2":"a3",
176: "3":"a4",
177: "10":"v1",
178: "11":"v2",
179: "12":{
180: "0":"b1",
181: "1":"b2"
182: },
183: "13":"c1",
184: "14":"c2"
185: }
186: 3.8 {
187: "0":"a1",
188: "1":"a2",
189: "2":"d1",
190: "3":"d2",
191: "4":"a3",
192: "5":"a4",
193: "12":"v1",
194: "13":"v2",
195: "14":{
196: "0":"b1",
197: "1":"b2"
198: },
199: "15":"c1",
200: "16":"c2"
201: }
202: 3.9 Exception type: parser.runtime,
1.4 moko 203: Source: copy,
1.1 moko 204: Comment: param must be array or hash (parameter #1)
205: 3.10 Exception type: parser.runtime,
1.4 moko 206: Source: copy,
1.1 moko 207: Comment: param must be array or must have hash representation
208: 3.11 3.12 Exception type: parser.runtime,
209: Source: join,
210: Comment: param must be array or hash (parameter #1)
211: 3.13 Exception type: parser.runtime,
212: Source: join,
213: Comment: param must be array or must have hash representation
214: 4. json
215: 4.1. Exception type: parser.runtime,
216: Source: x,
217: Comment: $.array must be parser method with 2 parameters or 'array' or 'hash'
1.3 moko 218: Exception type: parser.runtime,
219: Source: parse,
220: Comment: $.array must be parser method with 2 parameters or 'array' or 'hash'
221: Exception type: parser.runtime,
222: Source: parse,
223: Comment: $.object must be parser method with 2 parameters
224: Exception type: parser.runtime,
225: Source: parse,
226: Comment: called with invalid option
1.1 moko 227: 4.2. array, 2
228: 4.3 {
229: "object":{
230: "type":"class1",
231: "value":"sample1"
232: },
233: "array":[
234: "Много букв в кодировке windows-1251",
235: {
236: "id":1,
237: "label":"test1"
238: },
239: {
240: "id":2,
241: "label":"test2"
242: },
243: {
244: "Ключ":"Значение в windows-1251"
245: },
246: false,
247: true,
248: 2,
249: 1.23456789012346e+19,
250: 2,
251: null
252: ],
253: "object_2":{
254: "type":"class2",
255: "value":"sample2"
256: }
257: }
258: 4.4 {
259: "0":"Много букв в кодировке windows-1251",
260: "1":{
261: "id":1,
262: "label":"test1"
263: },
264: "2":{
265: "id":2,
266: "label":"test2"
267: },
268: "3":{
269: "Ключ":"Значение в windows-1251"
270: },
271: "4":false,
272: "5":true,
273: "6":2,
274: "7":1.23456789012346e+19,
275: "8":2,
276: "9":null,
277: "15":"last"
278: }
279: 4.5 [
280: "Много букв в кодировке windows-1251",
281: {
282: "id":1,
283: "label":"test1"
284: },
285: {
286: "id":2,
287: "label":"test2"
288: },
289: {
290: "Ключ":"Значение в windows-1251"
291: },
292: false,
293: true,
294: 2,
295: 1.23456789012346e+19,
296: 2,
297: null,
298: null,
299: null,
300: null,
301: null,
302: null,
303: "last"
304: ]
305: 4.6 [
306: "Много букв в кодировке windows-1251",
307: {
308: "id":1,
309: "label":"test1"
310: },
311: {
312: "id":2,
313: "label":"test2"
314: },
315: {
316: "Ключ":"Значение в windows-1251"
317: },
318: false,
319: true,
320: 2,
321: 1.23456789012346e+19,
322: 2,
323: null,
324: "last"
325: ]
326: 4.7 Exception type: parser.runtime,
327: Source: bug,
328: Comment: must be 'array', 'object' or 'compact'
1.3 moko 329: 4.8 Exception type: parser.runtime,
330: Source: bug,
331: Comment: must be 'string' or 'null'
332: 4.9 Exception type: parser.runtime,
333: Source: string,
334: Comment: $._default must be string or parser method with 3 parameters
335: 4.10 [
336: "0",
337: "1",
338: "2",
339: null,
340: null,
341: "5"
342: ]
343: 4.11 [
344: "0",
345: "1",
346: "2",
347: null,
348: null,
349: "5"
350: ]
351: 4.12 [
352: "0",
353: "1",
354: "2",
355: null,
356: null,
357: "5"
358: ]
359: 4.13 []
360: 4.14 []
E-mail: