[fpc-pascal] How to test fpjson?

Michael Van Canneyt michael at freepascal.org
Wed Jan 27 19:40:52 CET 2016



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
>> more
>>> tests in another place?
>>
>> I have more unit test units in the <fpc>/src/packages/fcl-json/tests/
>> directory.
>
> [...]
>
> I can't find any test for `TJSONScanner` class.
>
> In that case, Michael van Canneyt is probably the best person to answer
>> that.
>
> [...]
>
> 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 testjsondata.pp

Michael.



More information about the fpc-pascal mailing list