From 7dd8fd87b5ed1e17aa34a769cdf47177301c770d Mon Sep 17 00:00:00 2001 From: Grillo del Mal Date: Mon, 23 Sep 2024 16:57:16 -0300 Subject: [PATCH] Add version checking for the test expected resolution --- source/dub/test/dependencies.d | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/dub/test/dependencies.d b/source/dub/test/dependencies.d index 016756358..39a3fa569 100644 --- a/source/dub/test/dependencies.d +++ b/source/dub/test/dependencies.d @@ -152,6 +152,7 @@ version "0.0.1"`, PackageFormat.sdl); dub.upgrade(UpgradeOptions.select); assert(dub.project.hasAllDependencies(), "project have missing dependencies"); + assert(dub.project.getDependency("c", true).version_ == Version("0.0.0")); } unittest @@ -174,4 +175,5 @@ version "0.0.1"`, PackageFormat.sdl); dub.upgrade(UpgradeOptions.select); assert(dub.project.hasAllDependencies(), "project have missing dependencies"); + assert(dub.project.getDependency("c", true).version_ == Version("0.0.0")); } \ No newline at end of file