testjson.pp 1.1 KB

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