testjson.pp 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. { %OPT=-S2 -Fcutf8 }
  2. {
  3. This file is part of the Free Component Library
  4. JSON fpcunit tester program
  5. Copyright (c) 2007 by Michael Van Canneyt [email protected]
  6. See the file COPYING.FPC, included in this distribution,
  7. for details about the copyright.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  11. **********************************************************************}
  12. {$mode objfpc}
  13. {$h+}
  14. program testjson;
  15. uses
  16. {$ifdef unix}
  17. cwstring,
  18. {$endif}
  19. {$ifdef wasi}
  20. unicodeducet, fpwidestring,
  21. {$endif}
  22. Classes, testjsondata, testjsonparser, testjsonrtti, consoletestrunner, testjsonreader;
  23. type
  24. { TLazTestRunner }
  25. TMyTestRunner = class(TTestRunner)
  26. protected
  27. // override the protected methods of TTestRunner to customize its behavior
  28. end;
  29. var
  30. Application: TMyTestRunner;
  31. begin
  32. DefaultFormat := fPlain;
  33. DefaultRunAllTests := True;
  34. Application := TMyTestRunner.Create(nil);
  35. Application.Initialize;
  36. Application.Run;
  37. Application.Free;
  38. end.