From 7ff59bfc0073f6ed78eb82a775e516e15c0b29bd Mon Sep 17 00:00:00 2001 From: Mike Bierlee Date: Tue, 11 Oct 2022 20:18:25 +0300 Subject: [PATCH] Add new test case --- source/mirage/config.d | 9 +++++++++ 1 file changed, 9 insertions(+) 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"); + } }