mirror of
https://github.com/mbierlee/mirage-config.git
synced 2024-11-15 04:44:01 +01:00
Remove redundant java properties tests
This commit is contained in:
parent
d71e6b8f6e
commit
cb5731c691
|
@ -67,7 +67,7 @@ version (unittest) {
|
||||||
# I have a comment
|
# I have a comment
|
||||||
bla=one
|
bla=one
|
||||||
di.bla=two
|
di.bla=two
|
||||||
meh: very
|
meh: very # except when meh=not very
|
||||||
much = not much
|
much = not much
|
||||||
much: much !important!!!!!!!!
|
much: much !important!!!!!!!!
|
||||||
empty
|
empty
|
||||||
|
@ -87,11 +87,6 @@ version (unittest) {
|
||||||
assert(config.get("di.bla") == "two");
|
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")
|
@("Substitute env vars")
|
||||||
unittest {
|
unittest {
|
||||||
environment["MIRAGE_TEST_ENVY"] = "Much";
|
environment["MIRAGE_TEST_ENVY"] = "Much";
|
||||||
|
@ -119,15 +114,6 @@ version (unittest) {
|
||||||
assert(config.get("one") == "money");
|
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")
|
@("Quotes in values are preserved")
|
||||||
unittest {
|
unittest {
|
||||||
auto config = parseJavaProperties("
|
auto config = parseJavaProperties("
|
||||||
|
|
Loading…
Reference in a new issue