From b6cb9937133d314d5a421083c01ecc8e5293f18a Mon Sep 17 00:00:00 2001 From: Thomas Breuer Date: Mon, 2 Sep 2024 16:14:55 +0200 Subject: [PATCH] fix a test (#1028) The tests ``` @test GAP.Packages.install("fga", interactive = false) @test ! isempty(GAP.Packages.locate_package("fga")) ``` pass only if the FGA package was already loaded before the tests, which is the case in usual installations. If one starts GAP without packages (`-A` option) then the second test fails. One has to load the package in order to be sure that `locate_package` returns a nonempty result. --- test/packages.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/test/packages.jl b/test/packages.jl index 91df1a396..54fab790c 100644 --- a/test/packages.jl +++ b/test/packages.jl @@ -6,6 +6,7 @@ @test GAP.Packages.locate_package("no such package") == "" @test GAP.Packages.install("fga", interactive = false) + @test GAP.Packages.load("fga") @test ! isempty(GAP.Packages.locate_package("fga")) @test ! isempty(GAP.Packages.locate_package("FGA")) @test GAP.Packages.remove("fga", interactive = false)