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/stdstream.cpp | 39 --------------------------------------- 1 file changed, 39 deletions(-) delete mode 100644 src/tests/stdstream.cpp (limited to 'src/tests/stdstream.cpp') diff --git a/src/tests/stdstream.cpp b/src/tests/stdstream.cpp deleted file mode 100644 index 95df42e..0000000 --- a/src/tests/stdstream.cpp +++ /dev/null @@ -1,39 +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 "bu/sio.h" - -using Bu::sio; -using Bu::Fmt; - -int main() -{ - sio << "Hello there" << sio.nl; - - sio << "sizeof(Fmt) = " << sizeof(Fmt) << sio.nl; - - sio << -123 << ", " << 0 << ", " << 123 << sio.nl; - - sio << "+----------+" << sio.nl; - sio << "|" << Fmt( 10, 10, Fmt::Center ) << "Test" << "|" << sio.nl; - sio << "+----------+" << sio.nl; - sio << "|" << Fmt( 10, 10, Fmt::Left ) << 123 << "|" << sio.nl; - sio << "|" << Fmt( 10, 10, Fmt::Center ) << 123 << "|" << sio.nl; - sio << "|" << Fmt( 10, 10, Fmt::Right ) << 123 << "|" << sio.nl; - sio << "+----------+" << sio.nl; - - sio << Fmt(10,Fmt::Left) << "Hexcode:" << Fmt::ptr() << (void*)(&sio) << sio.nl; - - sio << 0.123 << sio.nl; - sio << true << " and then " << false << sio.nl; - - for( int j = 2; j <= 36; j++ ) - sio << "radix(" << j << ") = " << Fmt().radix( j ).width( 8 ).align( Fmt::Right ) << 255 << sio.nl; - - return 0; -} - -- cgit v1.2.3