--- parser3/tests/results/341.processed 2016/07/29 22:35:03 1.2 +++ parser3/tests/results/341.processed 2024/05/26 18:20:40 1.6 @@ -1,61 +1,64 @@ Content-Type: text/html -Content-Length: 1456 +Content-Length: 3358 +I. named Code coverage tests: -Type: parser.runtime, +Exception type: parser.runtime, Source: wrong, Comment: must be 'hash', 'table' or 'string' -Type: parser.runtime, +Exception type: parser.runtime, Source: hash, Comment: 'type' must be string -Type: parser.runtime, +Exception type: parser.runtime, Source: hash, Comment: called with invalid option -Type: parser.runtime, +Exception type: parser.runtime, Source: hash, Comment: options must be hash -Type: parser.runtime, +Exception type: parser.runtime, Source: hash, Comment: value field(s) must be string or table or code -Type: parser.runtime, +Exception type: parser.runtime, Source: hash, -Comment: you can specify only one value field with option $.type[string] -Type: parser.runtime, +Comment: you can't specify more then one value field with option $.type[string] +Exception type: parser.runtime, Source: hash, Comment: you can't specify $.type[] if value is code -Type: parser.runtime, +Exception type: parser.runtime, Source: ups, Comment: column not found -Type: parser.runtime, +Exception type: parser.runtime, Source: ups, Comment: column not found Valid calls tests: -{ +1. { "1":{ "id":"1", "price":"6.50" }, "2":{ "id":"2", -"price":"70.00" +"price":"70.00", +"2":"", +"3":"more data" }, "3":{ "id":"3", "price":"60.85" } } -{ +2. { "1":[ {"id":"1","price":"6.50"} ], "2":[ -{"id":"2","price":"70.00"} +{"id":"2","price":"70.00","2":"","3":"more data"} ], "3":[ {"id":"3","price":"60.85"} ] } -{ +3. { "1":{ "price":"6.50" }, @@ -66,12 +69,12 @@ Valid calls tests: "price":"60.85" } } -{ +4. { "id":{ "price":"6.50" } } -{ +5. { "1":{ "id":"1", "price":"6.50" @@ -85,27 +88,28 @@ Valid calls tests: "price":"60.85" } } -{ +6. { "id":{ "id":"1", "price":"6.50" } } New functionality tests: -{ +n1. { "=1=":"1 - 6.50", "=2=":"2 - 70.00", -"=3=":"3 - 60.85" +"=3=":"3 - 60.85", +"=_default=":"_default - 0" } -{ +n2. { "1":"1 - 6.50", "2":"2 - 70.00", "3":"3 - 60.85" } -{ +n3. { "id":"code" } -{ +n4. { "1":{ "key":"6.50" }, @@ -116,8 +120,142 @@ New functionality tests: "key":"60.85" } } -{ +n5. { "1":{}, "2":{}, "3":{} +} +n6. { +"1":"", +"2":"", +"3":"" +} +II. nameless +Code coverage tests: +Exception type: parser.runtime, +Source: wrong, +Comment: must be 'hash', 'table' or 'string' +Exception type: parser.runtime, +Source: hash, +Comment: 'type' must be string +Exception type: parser.runtime, +Source: hash, +Comment: called with invalid option +Exception type: parser.runtime, +Source: hash, +Comment: options must be hash +Exception type: parser.runtime, +Source: hash, +Comment: value field(s) must be string or table or code +Exception type: parser.runtime, +Source: hash, +Comment: you can't specify more then one value field with option $.type[string] +Exception type: parser.runtime, +Source: hash, +Comment: you can't specify $.type[] if value is code +Exception type: number.format, +Source: ups, +Comment: invalid number (int) +Exception type: number.format, +Source: ups, +Comment: invalid number (int) +Valid calls tests: +1. { +"1":{ +"0":"1", +"1":"6.50" +}, +"2":{ +"0":"2", +"1":"70.00", +"2":"", +"3":"more data" +}, +"3":{ +"0":"3", +"1":"60.85" +} +} +2. { +"1":[ +{"0":"1","1":"6.50"} +], +"2":[ +{"0":"2","1":"70.00","2":"","3":"more data"} +], +"3":[ +{"0":"3","1":"60.85"} +] +} +3. { +"1":{ +"1":"6.50" +}, +"2":{ +"1":"70.00" +}, +"3":{ +"1":"60.85" +} +} +4. { +"0":{ +"1":"6.50" +} +} +5. { +"1":{ +"0":"1", +"1":"6.50" +}, +"2":{ +"0":"2", +"1":"70.00" +}, +"3":{ +"0":"3", +"1":"60.85" +} +} +6. { +"0":{ +"0":"1", +"1":"6.50" +} +} +New functionality tests: +n1. { +"=1=":"1 - 6.50", +"=2=":"2 - 70.00", +"=3=":"3 - 60.85", +"=_default=":"_default - 0" +} +n2. { +"1":"1 - 6.50", +"2":"2 - 70.00", +"3":"3 - 60.85" +} +n3. { +"0":"code" +} +n4. { +"1":{ +"key":"6.50" +}, +"2":{ +"key":"70.00" +}, +"3":{ +"key":"60.85" +} +} +n5. { +"1":{}, +"2":{}, +"3":{} +} +n6. { +"1":"", +"2":"", +"3":"" } \ No newline at end of file