mirror of
https://github.com/mbierlee/mirage-config.git
synced 2024-11-15 04:44:01 +01:00
Add new test case
This commit is contained in:
parent
540c04f842
commit
7ff59bfc00
|
@ -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");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue