From cb5731c691acba7fe5204dbbc33b74369c8c8c51 Mon Sep 17 00:00:00 2001 From: Mike Bierlee Date: Thu, 13 Oct 2022 01:08:07 +0300 Subject: [PATCH] Remove redundant java properties tests --- source/mirage/java.d | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/source/mirage/java.d b/source/mirage/java.d index 1c47041..97e295c 100644 --- a/source/mirage/java.d +++ b/source/mirage/java.d @@ -67,7 +67,7 @@ version (unittest) { # I have a comment bla=one di.bla=two - meh: very + meh: very # except when meh=not very much = not much much: much !important!!!!!!!! empty @@ -87,11 +87,6 @@ version (unittest) { assert(config.get("di.bla") == "two"); } - @("Fail to parse when there are too many equals signs") - unittest { - assertThrown!ConfigCreationException(parseJavaProperties("one=two=three")); - } - @("Substitute env vars") unittest { environment["MIRAGE_TEST_ENVY"] = "Much"; @@ -119,15 +114,6 @@ version (unittest) { assert(config.get("one") == "money"); } - @("Remove end-of-line comments") - unittest { - auto config = parseJavaProperties(" - server=localhost #todo: change me. default=localhost when not set. - "); - - assert(config.get("server") == "localhost"); - } - @("Quotes in values are preserved") unittest { auto config = parseJavaProperties("