testregexpr.pp 557 B

123456789101112131415161718192021222324252627282930
  1. { %CONFIGFILE=fpcunit-console-defaults.ini testdefaults.ini }
  2. program testregexpr;
  3. {$mode objfpc}{$H+}
  4. uses
  5. Classes, consoletestrunner, tcregexp;
  6. type
  7. { TMyTestRunner }
  8. TMyTestRunner = class(TTestRunner)
  9. protected
  10. // override the protected methods of TTestRunner to customize its behavior
  11. end;
  12. var
  13. Application: TMyTestRunner;
  14. begin
  15. DefaultFormat:=fPlain;
  16. DefaultRunAllTests:=True;
  17. Application := TMyTestRunner.Create(nil);
  18. Application.Initialize;
  19. Application.Title:='testregexpr';
  20. Application.Run;
  21. Application.Free;
  22. end.