Defer setting group until after All Users/Just For Me is chosen
[cygwin-setup.git] / tests / UserSettingsTest.cc
blob817636e3e69f9839053c12b73d18cd540808cfce
1 /*
2 * Copyright (c) 2003, Robert Collins
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * A copy of the GNU General Public License can be found at
10 * http://www.gnu.org/
12 * Written by Robert Collins <rbtcollins@hotmail.com>
16 #include "UserSettings.h"
18 #include <assert.h>
19 #include <string.h>
21 int
22 main (int argc, char **argv)
24 UserSettings settings;
25 UserSettings& i = UserSettings::instance();
26 i.set("key", "value");
27 assert(strcmp(i.get("key"), "value") == 0);
28 return 0;