Add new test case

This commit is contained in:
Mike Bierlee 2022-10-11 20:18:25 +03:00
parent 540c04f842
commit 7ff59bfc00

View file

@ -1110,4 +1110,13 @@ version (unittest) {
assert(config.get("one.two.mouseSound") == "meep"); assert(config.get("one.two.mouseSound") == "meep");
assert(config.get("I.am") == "baboon"); assert(config.get("I.am") == "baboon");
} }
@("Setting the same value twice will use latest setting")
unittest {
auto config = new ConfigDictionary();
config.set("key", "value");
config.set("key", "alsoValue");
assert(config.get("key") == "alsoValue");
}
} }