[fpc-pascal] How to test fpjson?
silvioprog at gmail.com
Thu Jan 28 02:59:12 CET 2016
On Wed, Jan 27, 2016 at 3:40 PM, Michael Van Canneyt <michael at freepascal.org
> On Wed, 27 Jan 2016, silvioprog wrote:
>> On Wed, Jan 27, 2016 at 2:41 PM, Graeme Geldenhuys <
>> mailinglists at geldenhuys.co.uk> wrote:
>> On 2016-01-27 17:28, silvioprog wrote:
>>>> Is the `testjsonparser` unit all the tests for FCL JSON, or can I find
>>>> tests in another place?
>>> I have more unit test units in the <fpc>/src/packages/fcl-json/tests/
>> I can't find any test for `TJSONScanner` class.
>> In that case, Michael van Canneyt is probably the best person to answer
>> Let's expect his answer. :-)
> You can add tests to the TTestParser class in the testjsonparser.pp unit.
> if you want to test purely data related stuff, use classes in
I already found two failures, but I don't know if it something in my
environment (Lazarus 1.7 rUnknown FPC 3.1.1 i386-win32-win32/win64):
C:\[...]fcl-json\tests>testjson.exe > result.txt
Heap dump by heaptrc unit
34687 memory blocks allocated : 1332965/1459696
34687 memory blocks freed : 1332965/1459696
0 unfreed memory blocks : 0
True heap size : 360448 (112 used in System startup)
True free heap : 360336
Number of run tests: 321
Number of errors: 0
Number of failures: 2
See the `result.txt` large content here: http://pastebin.com/JTC93esY.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-pascal