From b6e100b94b12f3f92ec025dc2363eaf7c0ee6662 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 10 Apr 2007 16:02:07 +0000 Subject: Well, we've got the basis of a workable unit test harness thing. There should be a few more add-ons to it, but it works just fine, and eventually it should cover command line options and creating logs, and possibly even provide output functionality so that output from tests can be logged and kept track of well. --- src/unit/fstring.cpp | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/unit/fstring.cpp (limited to 'src/unit/fstring.cpp') diff --git a/src/unit/fstring.cpp b/src/unit/fstring.cpp new file mode 100644 index 0000000..72755eb --- /dev/null +++ b/src/unit/fstring.cpp @@ -0,0 +1,28 @@ +#include "fstring.h" +#include "unitsuite.h" + +class Unit : public Bu::UnitSuite +{ +public: + Unit() + { + setName("FString"); + addTest( Unit::test1 ); + } + + virtual ~Unit() + { + } + + void test1() + { + unitTest( 1 == 1 ); + unitTest( 1 == 0 ); + } +}; + +int main( int argc, char *argv[] ) +{ + return Unit().run( argc, argv ); +} + -- cgit v1.2.3