@@ -182,22 +182,22 @@ namespace
182182 void directory_identity_and_validation_tests ()
183183 {
184184 const RegistryPackageIdentity logical{" vix" , " softadastra" , " sqlite" };
185- auto first = build_registry_directory ({{" vix" , {{" location-A" }, {" location-B" }}}});
186- auto relocated = build_registry_directory ({{" vix" , {{" location-C" }}}});
185+ auto first = build_registry_directory ({{" vix" , {{" location-A" }, {" location-B" }}, {} }});
186+ auto relocated = build_registry_directory ({{" vix" , {{" location-C" }}, {} }});
187187 assert (first.valid () && relocated.valid ());
188188 assert (first.value ->find (logical.registry )->id == relocated.value ->find (logical.registry )->id );
189189 assert (logical.registry == " vix" && logical.publisher == " softadastra" && logical.name == " sqlite" );
190190
191- auto sharedLocation = build_registry_directory ({{" vix" , {{" location-X" }}} , {" company" , {{" location-X" }}}});
191+ auto sharedLocation = build_registry_directory ({{" vix" , {{" location-X" }}, {}} , {" company" , {{" location-X" }}, { }}});
192192 assert (sharedLocation.valid ());
193193 assert (sharedLocation.value ->find (" vix" ) && sharedLocation.value ->find (" company" ));
194194 assert (sharedLocation.value ->find (" vix" )->locations .front () == sharedLocation.value ->find (" company" )->locations .front ());
195195 assert ((RegistryPackageIdentity{" vix" , " example" , " pkg" } !=
196196 RegistryPackageIdentity{" company" , " example" , " pkg" }));
197197
198- auto duplicateIds = build_registry_directory ({{" vix" , {{" A" }}} , {" vix" , {{" B" }}}});
198+ auto duplicateIds = build_registry_directory ({{" vix" , {{" A" }}, {}} , {" vix" , {{" B" }}, { }}});
199199 assert (!duplicateIds.valid () && duplicateIds.issues .front ().code == RegistryDirectoryErrorCode::duplicate_registry_id);
200- auto noLocations = build_registry_directory ({{" vix" , {}}});
200+ auto noLocations = build_registry_directory ({{" vix" , {}, {} }});
201201 assert (!noLocations.valid () && noLocations.issues .front ().code == RegistryDirectoryErrorCode::no_registry_locations);
202202
203203 auto orderOne = build_registry_directory ({{" company" , {{" X" }}, {}}, {" vix" , {{" A" }, {" B" }}, {}}});
0 commit comments