From 45e065bc4fc93731ea9a0543462bc7cf9e6084d7 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 7 Jan 2009 15:59:57 +0000 Subject: Only two real changes. First, Bu::FString and Bu::FBasicString are in different files. This won't affect any programs at all anywhere. This will just make it easier to maintain and extend later. You still want to include "bu/fstring.h" and use Bu::FString in code. The other is kinda fun. I created a special format for unit tests, they use the extension .unit now and use the mkunit.sh script to convert them to c++ code. There are some nice features here too, maintaining unit tests is much, much easier, and we can have more features without making the code any harder to use. Also, it will be easier to have the unit tests generate reports and be run from a master program and the like. --- src/unitsuite.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/unitsuite.h') diff --git a/src/unitsuite.h b/src/unitsuite.h index d27e322..d75211a 100644 --- a/src/unitsuite.h +++ b/src/unitsuite.h @@ -81,9 +81,15 @@ namespace Bu { optStopOnError = 0x000001 }; + + enum Expect + { + expectPass, + expectFail + }; protected: - void add( Test fTest, Bu::FString sName ); + void add( Test fTest, const Bu::FString &sName, Expect e=expectPass ); void setName( const FString &sName ); private: -- cgit v1.2.3