diff --git a/source/mirage/config.d b/source/mirage/config.d index 4779008..d20df5c 100644 --- a/source/mirage/config.d +++ b/source/mirage/config.d @@ -698,7 +698,14 @@ version (unittest) { assert(jsonConfig.get("taxNumber") == null); } - // TODO test whitespace is preserved in value + @("Whitespace is preserved in values") + unittest { + auto config = new ConfigDictionary(new ObjectNode([ + "bla": " blergh " + ])); + + assert(config.get("bla") == " blergh "); + } @("Read value from environment variable") unittest {