From dac0efab6145cbedef154bb2332d8055b86707b8 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Thu, 29 Aug 2024 11:05:46 +0100 Subject: [PATCH] Fix tests and examples to new GAP website The individual package pages are gone in the new design. They may soon become redirects but I think it's best to not rely on that but instead use an URL that is guaranteed to stay around --- doc/download.xml | 2 +- tst/download.tst | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/download.xml b/doc/download.xml index fa197da..aa4d7ad 100644 --- a/doc/download.xml +++ b/doc/download.xml @@ -73,7 +73,7 @@ The following components are supported.

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 diff --git a/tst/download.tst b/tst/download.tst index 5e34637..f07eea9 100644 --- a/tst/download.tst +++ b/tst/download.tst @@ -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 @@ -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