hydrobyte / McJSON

A Delphi / Lazarus / C++Builder simple and small class for fast JSON parsing.
MIT License
58 stars 20 forks source link

Improve test case #1

Closed mrandreastoth closed 2 years ago

mrandreastoth commented 2 years ago

Just looking at the test function Test99 and I note that it performs a save followed by a load, however, this doesn't prove if the load actually worked. An improvement would be to perform a change between the save and load, but not a complete clear. A possible change could be the addition of an extra item before the load, an item that then should not be present in the resulting JSON for the test to pass.

hydrobyte commented 2 years ago

Hi Andreas! You're right! I'll improve this example in next update. Thanks for your nice suggestion.

hydrobyte commented 2 years ago

Hi Andreas! Improved Test12 following your suggestion. Thanks!