File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff 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:
843843job:
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
You can’t perform that action at this time.
0 commit comments