testjson.pp 980 B

123456789101112131415161718192021222324252627282930313233343536
  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. Classes, consoletestrunner, testjsondata, testjsonparser,
  16. fpcunitconsolerunner;
  17. type
  18. { TLazTestRunner }
  19. TMyTestRunner = class(TTestRunner)
  20. protected
  21. // override the protected methods of TTestRunner to customize its behavior
  22. end;
  23. var
  24. Application: TMyTestRunner;
  25. begin
  26. Application := TMyTestRunner.Create(nil);
  27. Application.Initialize;
  28. Application.Run;
  29. Application.Free;
  30. end.