Skip to content

Commit

Permalink
Merge pull request #71 from gap-packages/mh/fix-urls
Browse files Browse the repository at this point in the history
Fix tests and examples to new GAP website
  • Loading branch information
cdwensley authored Oct 20, 2024
2 parents 0f97e9e + dac0efa commit 6a4d4b6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion doc/download.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ The following components are supported.
<P/>
<Example>
<![CDATA[
gap> url:= "https://www.gap-system.org/Packages/utils.html";;
gap> url:= "https://www.gap-system.org/index.html";;
gap> res1:= Download( url );;
gap> res1.success;
true
Expand Down
8 changes: 4 additions & 4 deletions tst/download.tst
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ gap> for i in [ 1 .. Length( meths ) ] do
> meths[i].position:= String( i );
> od;
gap> urls:= [ # a http url that gets redirected to https
> [ "http://www.gap-system.org/Packages/utils.html", true ],
> [ "http://www.gap-system.org/index.html", true ],
> # a http url that works as such
> [ "http://www.math.rwth-aachen.de/index.html", true ],
> # a https url that exists
> [ "https://www.gap-system.org/Packages/utils.html", true ],
> [ "https://www.gap-system.org/index.html", true ],
> # a https url that does not exist
> [ "https://www.gap-system.org/Packages/utilsxxx.html", false ],
> [ "https://www.gap-system.org/indexxxxx.html", false ],
> ];;

## The problem is that the methods do not behave consistently
Expand Down Expand Up @@ -68,7 +68,7 @@ gap> for pair in urls do
> od;

## the example 9.1.1 from the manual
gap> url:= "https://www.gap-system.org/Packages/utils.html";;
gap> url:= "https://www.gap-system.org/index.html";;
gap> res1:= Download( url );;
gap> res1.success;
true
Expand Down

0 comments on commit 6a4d4b6

Please sign in to comment.