diff --git a/source/mirage/config.d b/source/mirage/config.d index db8a64c..0cea812 100644 --- a/source/mirage/config.d +++ b/source/mirage/config.d @@ -1110,4 +1110,13 @@ version (unittest) { assert(config.get("one.two.mouseSound") == "meep"); 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"); + } }