From d7d2c0929a5d7871e913451fd542e03ae4561183 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Fri, 24 Aug 2012 20:11:04 +0000 Subject: 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. --- src/tests/settings.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/tests') 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 @@ #include "bu/settings.h" +#include "bu/sio.h" + +using namespace Bu; int main() { Bu::Settings s("Xagasoft", "Settings"); + sio << s.get("Something", "BAD").get() << sio.nl; + sio << s.get("general/path", "BAD").get() << sio.nl; + sio << s.get("general/magic", "BAD").get() << sio.nl; + + s.set("Something", "bob"); + s.set("general/path", "E:\\Place"); } -- cgit v1.2.3