Skip to content

Commit b0578bc

Browse files
Geod24thewilsonator
authored andcommitted
chore(configy): Use JSON, not YAML, in the unittest
Dub does not yet support YAML, so using JSON here is slightly better if we were to change the underlying parser.
1 parent 8998517 commit b0578bc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

source/dub/internal/configy/dub_test.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ unittest
2626
string[][string] names_;
2727
}
2828

29-
auto c = parseConfigString!Config("names-x86:\n - John\n - Luca\nnames:\n - Marie", "/dev/null");
29+
auto c = parseConfigString!Config(`{ "names-x86": [ "John", "Luca" ], "names": [ "Marie" ] }`, "/dev/null");
3030
assert(c.names_[null] == [ "Marie" ]);
3131
assert(c.names_["x86"] == [ "John", "Luca" ]);
3232
}

0 commit comments

Comments
 (0)