From 292ae9453e7fdb2f1023ed9dfc99cbcd751f8b90 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 10 Feb 2009 22:26:46 +0000 Subject: Hey, got the formatter working, that's something. I really like it so far, lets see how nice we can really make it. --- src/tests/stdstream.cpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/tests/stdstream.cpp (limited to 'src/tests/stdstream.cpp') diff --git a/src/tests/stdstream.cpp b/src/tests/stdstream.cpp new file mode 100644 index 0000000..d67f9b8 --- /dev/null +++ b/src/tests/stdstream.cpp @@ -0,0 +1,21 @@ +#include "bu/sio.h" + +int main() +{ + Bu::sio << "Hello there" << Bu::sio.nl; + + Bu::sio << "sizeof(Fmt) = " << sizeof(Bu::Fmt) << Bu::sio.nl; + + Bu::sio << -123 << ", " << 0 << ", " << 123 << Bu::sio.nl; + + Bu::sio << "+----------+" << Bu::sio.nl; + Bu::sio << "|" << Bu::Fmt( 10, 10, Bu::Fmt::Center ) << "Test" << "|" << Bu::sio.nl; + Bu::sio << "+----------+" << Bu::sio.nl; + Bu::sio << "|" << Bu::Fmt( 10, 10, Bu::Fmt::Left ) << 123 << "|" << Bu::sio.nl; + Bu::sio << "|" << Bu::Fmt( 10, 10, Bu::Fmt::Center ) << 123 << "|" << Bu::sio.nl; + Bu::sio << "|" << Bu::Fmt( 10, 10, Bu::Fmt::Right ) << 123 << "|" << Bu::sio.nl; + Bu::sio << "+----------+" << Bu::sio.nl; + + return 0; +} + -- cgit v1.2.3