From 4b9289cfb260f4bcecaf23a810584ef6ef8e8501 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 30 Mar 2011 22:33:41 +0000 Subject: Ok, string stuff is working much, much better, a load of new unit tests have been added, and I deleted a whole slew of stupid old tests that I don't need. --- src/tests/console.cpp | 43 ------------------------------------------- 1 file changed, 43 deletions(-) delete mode 100644 src/tests/console.cpp (limited to 'src/tests/console.cpp') diff --git a/src/tests/console.cpp b/src/tests/console.cpp deleted file mode 100644 index 670ff5b..0000000 --- a/src/tests/console.cpp +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2007-2011 Xagasoft, All rights reserved. - * - * This file is part of the libbu++ library and is released under the - * terms of the license contained in the file LICENSE. - */ - -#include -using namespace Bu; - -#include -using namespace std; - -typedef struct Counter -{ - Counter() : i( 0 ) - { - } - - int get() - { - i++; - return i-1; - } - - int i; -} Counter; - -template -void runtest( a &out ) -{ - Counter c; - out << c.get() << ", " << c.get() << ", " << c.get() << ", " << c.get() << ", " << c.get() << "\n"; -} - -int main() -{ - runtest( cout ); - runtest( sio ); - - return 0; -} - -- cgit v1.2.3