Skip to content

Commit

Permalink
fix a test (#1028)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ThomasBreuer authored Sep 2, 2024
1 parent a8674da commit b6cb993
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/packages.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b6cb993

Please sign in to comment.