aboutsummaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/tests/settings.cpp9
-rw-r--r--src/tests/utf.cpp6
2 files changed, 15 insertions, 0 deletions
diff --git a/src/tests/settings.cpp b/src/tests/settings.cpp
new file mode 100644
index 0000000..0738cb7
--- /dev/null
+++ b/src/tests/settings.cpp
@@ -0,0 +1,9 @@
1#include "bu/settings.h"
2
3int main()
4{
5 Bu::Settings s("Xagasoft", "Settings");
6
7
8}
9
diff --git a/src/tests/utf.cpp b/src/tests/utf.cpp
index 3418e68..923b611 100644
--- a/src/tests/utf.cpp
+++ b/src/tests/utf.cpp
@@ -1,9 +1,15 @@
1#include <bu/file.h> 1#include <bu/file.h>
2#include <bu/string.h> 2#include <bu/string.h>
3#include <bu/utfstring.h> 3#include <bu/utfstring.h>
4#include <bu/sio.h>
5
6using namespace Bu;
4 7
5int main() 8int main()
6{ 9{
10 sio << "Code: " << Bu::__calcHashCode( Bu::UtfString("Hello there") )
11 << sio.nl;
12
7 Bu::File fIn("utf8.in", Bu::File::Read ); 13 Bu::File fIn("utf8.in", Bu::File::Read );
8 Bu::String sUtf8; 14 Bu::String sUtf8;
9 char buf[4096]; 15 char buf[4096];