00001 //******************************************************************** 00002 //*** t/TEST.hh 00003 //*** Copyright (c) 2001 by Markus Winand <mws@fatalmind.com> 00004 //*** $Id: TEST.hh,v 1.3 2005-05-07 19:50:47 mws Exp $ 00005 //******************************************************************** 00006 00007 typedef void (*TF) (); 00008 00009 class TEST { 00010 public: 00011 TEST(bool = false); 00012 virtual ~TEST() { 00013 } 00014 int run_tests(); 00015 protected: 00016 virtual void test_it(TF, char *name); 00017 protected: 00018 int OK; 00019 int FAIL; 00020 int ERROR; 00021 bool silent; 00022 int num; 00023 };