testregexpr.pp 494 B

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