aboutsummaryrefslogtreecommitdiff
path: root/src/tests/stdstream.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/tests/stdstream.cpp21
1 files changed, 21 insertions, 0 deletions
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 @@
1#include "bu/sio.h"
2
3int main()
4{
5 Bu::sio << "Hello there" << Bu::sio.nl;
6
7 Bu::sio << "sizeof(Fmt) = " << sizeof(Bu::Fmt) << Bu::sio.nl;
8
9 Bu::sio << -123 << ", " << 0 << ", " << 123 << Bu::sio.nl;
10
11 Bu::sio << "+----------+" << Bu::sio.nl;
12 Bu::sio << "|" << Bu::Fmt( 10, 10, Bu::Fmt::Center ) << "Test" << "|" << Bu::sio.nl;
13 Bu::sio << "+----------+" << Bu::sio.nl;
14 Bu::sio << "|" << Bu::Fmt( 10, 10, Bu::Fmt::Left ) << 123 << "|" << Bu::sio.nl;
15 Bu::sio << "|" << Bu::Fmt( 10, 10, Bu::Fmt::Center ) << 123 << "|" << Bu::sio.nl;
16 Bu::sio << "|" << Bu::Fmt( 10, 10, Bu::Fmt::Right ) << 123 << "|" << Bu::sio.nl;
17 Bu::sio << "+----------+" << Bu::sio.nl;
18
19 return 0;
20}
21