Remove redundant java properties tests

This commit is contained in:
Mike Bierlee 2022-10-13 01:08:07 +03:00
parent d71e6b8f6e
commit cb5731c691

View file

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