Skip to content

Commit 1bb6810

Browse files
Apply suggestions from code review
Co-authored-by: Mathias LANG <[email protected]>
1 parent 89c5b39 commit 1bb6810

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

source/configy/test.d

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -824,6 +824,7 @@ unittest
824824
static struct Job {
825825
static struct Image {
826826
string name;
827+
bool force_pull;
827828
static Image fromString(string s) {
828829
Image v;
829830
v.name = s;
@@ -832,7 +833,6 @@ unittest
832833
}
833834
Image image;
834835
}
835-
// alias Config = Job[string]; // TODO, we should support top-level associative arrays
836836
struct Config { Job job; }
837837

838838
auto c1 = parseConfigString!Config(`
@@ -843,9 +843,11 @@ job:
843843
job:
844844
image:
845845
name: ruby:3.0
846+
force_pull: true
846847
`, "/dev/null");
847848
assert(c1.job.image.name == "ruby:3.0");
848849
assert(c2.job.image.name == "ruby:3.0");
850+
assert(c2.job.image.force_pull);
849851
}
850852

851853
/// Don't call `opCmp` / `opEquals` as they might not be CTFEable

0 commit comments

Comments
 (0)