summaryrefslogtreecommitdiff
path: root/src/tests/stdstream.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2011-03-30 22:33:41 +0000
committerMike Buland <eichlan@xagasoft.com>2011-03-30 22:33:41 +0000
commit4b9289cfb260f4bcecaf23a810584ef6ef8e8501 (patch)
tree79136af08c7e42ba3322f0d73e9779e4354b318a /src/tests/stdstream.cpp
parentc7636dc954eddfe58f7959392602fbc9072d77e7 (diff)
downloadlibbu++-4b9289cfb260f4bcecaf23a810584ef6ef8e8501.tar.gz
libbu++-4b9289cfb260f4bcecaf23a810584ef6ef8e8501.tar.bz2
libbu++-4b9289cfb260f4bcecaf23a810584ef6ef8e8501.tar.xz
libbu++-4b9289cfb260f4bcecaf23a810584ef6ef8e8501.zip
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.
Diffstat (limited to '')
-rw-r--r--src/tests/stdstream.cpp39
1 files changed, 0 insertions, 39 deletions
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 @@
1/*
2 * Copyright (C) 2007-2011 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
8#include "bu/sio.h"
9
10using Bu::sio;
11using Bu::Fmt;
12
13int main()
14{
15 sio << "Hello there" << sio.nl;
16
17 sio << "sizeof(Fmt) = " << sizeof(Fmt) << sio.nl;
18
19 sio << -123 << ", " << 0 << ", " << 123 << sio.nl;
20
21 sio << "+----------+" << sio.nl;
22 sio << "|" << Fmt( 10, 10, Fmt::Center ) << "Test" << "|" << sio.nl;
23 sio << "+----------+" << sio.nl;
24 sio << "|" << Fmt( 10, 10, Fmt::Left ) << 123 << "|" << sio.nl;
25 sio << "|" << Fmt( 10, 10, Fmt::Center ) << 123 << "|" << sio.nl;
26 sio << "|" << Fmt( 10, 10, Fmt::Right ) << 123 << "|" << sio.nl;
27 sio << "+----------+" << sio.nl;
28
29 sio << Fmt(10,Fmt::Left) << "Hexcode:" << Fmt::ptr() << (void*)(&sio) << sio.nl;
30
31 sio << 0.123 << sio.nl;
32 sio << true << " and then " << false << sio.nl;
33
34 for( int j = 2; j <= 36; j++ )
35 sio << "radix(" << j << ") = " << Fmt().radix( j ).width( 8 ).align( Fmt::Right ) << 255 << sio.nl;
36
37 return 0;
38}
39