aboutsummaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
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