Add multline tests to ini and java

This commit is contained in:
Mike Bierlee 2022-10-13 21:31:34 +03:00
parent 747c5cf0d8
commit 9fa1092e80
2 changed files with 6 additions and 0 deletions

View file

@ -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");

View file

@ -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")