diff options
author | danglassey <danglassey> | 2002-08-14 09:57:17 +0000 |
---|---|---|
committer | danglassey <danglassey> | 2002-08-14 09:57:17 +0000 |
commit | c9458897ebbb739d8db83c80e06512d8a612f743 (patch) | |
tree | f8c5381045887e34388cc6b26cfccc254bf766dc /tests/configtest.cpp | |
download | sword-sf-cvs-c9458897ebbb739d8db83c80e06512d8a612f743.tar.gz |
*** empty log message ***
Diffstat (limited to 'tests/configtest.cpp')
-rw-r--r-- | tests/configtest.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/configtest.cpp b/tests/configtest.cpp new file mode 100644 index 0000000..c6645eb --- /dev/null +++ b/tests/configtest.cpp @@ -0,0 +1,13 @@ +#include <iostream> +#include <swconfig.h> + +int main(int argc, char **argv) { + SWConfig config("./test1.conf"); + config["Section1"]["Entry1"] = "Value1"; + config["Section1"]["Entry2"] = "oops"; + config["Section1"]["Entry2"] = "Value2"; + config.Save(); + SWConfig config2("./test1.conf"); + std::cout << "Should be Value2: " << config2["Section1"]["Entry2"] << std::endl; + return 0; +} |