aboutsummaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2012-08-24 20:11:04 +0000
committerMike Buland <eichlan@xagasoft.com>2012-08-24 20:11:04 +0000
commitd7d2c0929a5d7871e913451fd542e03ae4561183 (patch)
treea5ca60568edc265e1c4f657706709db7d27f50bc /src/tests
parentda642482dee91921fc16786208aa497d3ee31d94 (diff)
downloadlibbu++-d7d2c0929a5d7871e913451fd542e03ae4561183.tar.gz
libbu++-d7d2c0929a5d7871e913451fd542e03ae4561183.tar.bz2
libbu++-d7d2c0929a5d7871e913451fd542e03ae4561183.tar.xz
libbu++-d7d2c0929a5d7871e913451fd542e03ae4561183.zip
Taf isn't really...the best backend for this now, I need some more fixes there
first, so next up we need the windows registry backend.
Diffstat (limited to '')
-rw-r--r--src/tests/settings.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/tests/settings.cpp b/src/tests/settings.cpp
index 0738cb7..2caa015 100644
--- a/src/tests/settings.cpp
+++ b/src/tests/settings.cpp
@@ -1,9 +1,18 @@
1#include "bu/settings.h" 1#include "bu/settings.h"
2#include "bu/sio.h"
3
4using namespace Bu;
2 5
3int main() 6int main()
4{ 7{
5 Bu::Settings s("Xagasoft", "Settings"); 8 Bu::Settings s("Xagasoft", "Settings");
6 9
10 sio << s.get("Something", "BAD").get() << sio.nl;
11 sio << s.get("general/path", "BAD").get() << sio.nl;
12 sio << s.get("general/magic", "BAD").get() << sio.nl;
13
14 s.set("Something", "bob");
15 s.set("general/path", "E:\\Place");
7 16
8} 17}
9 18