From 9fa1092e80bad55a16960ad18cc3f314efaa71fa Mon Sep 17 00:00:00 2001 From: Mike Bierlee Date: Thu, 13 Oct 2022 21:31:34 +0300 Subject: [PATCH] Add multline tests to ini and java --- source/mirage/ini.d | 3 +++ source/mirage/java.d | 3 +++ 2 files changed, 6 insertions(+) diff --git a/source/mirage/ini.d b/source/mirage/ini.d index 008e418..d656ad5 100644 --- a/source/mirage/ini.d +++ b/source/mirage/ini.d @@ -64,6 +64,8 @@ version (unittest) { unittest { auto config = parseIniConfig(" globalSection = yes + multi = 'we are \\ + multi!' [supersection] thefirst = here @@ -82,6 +84,7 @@ version (unittest) { "); assert(config.get("globalSection") == "yes"); + assert(config.get("multi") == "we are multi!"); assert(config.get("supersection.thefirst") == "here"); assert(config.get("supersection.sub.sandwich") == "maybe tasty"); assert(config.get("supersection.sub.way.advertisement?") == "nah"); diff --git a/source/mirage/java.d b/source/mirage/java.d index 75c1953..ad431a9 100644 --- a/source/mirage/java.d +++ b/source/mirage/java.d @@ -79,6 +79,8 @@ version (unittest) { much = not much much: much !important!!!!!!!! empty + multi = we are \\ + two lines "); assert(config.get("bla") == "one"); @@ -86,6 +88,7 @@ version (unittest) { assert(config.get("meh") == "very"); assert(config.get("much") == "much"); assert(config.get("empty") == ""); + assert(config.get("multi") == "we are two lines"); } @("Parse java properties file")