Skip to content

Commit f0597a8

Browse files
committed
display.tst: reinstate Splash tests
1 parent 0ab5f19 commit f0597a8

File tree

3 files changed

+17
-23
lines changed

3 files changed

+17
-23
lines changed

.covignore

-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
display.tst
21
utils.tst
32
io.tst

ci/docker-test.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ DIG_DIR="$GAP_HOME/pkg/digraphs"
6767

6868
bold "Installing dependencies (apt-get). . ."
6969
sudo apt-get --yes update
70-
sudo apt-get install libtool curl git --yes
70+
sudo apt-get install libtool curl git xdg-utils --yes
7171

7272
if [ "$GAP_VERSION" == "master" ]; then
7373
# Stops the documentation from failing to compile because enumitem.sty isn't

tst/standard/display.tst

+16-21
Original file line numberDiff line numberDiff line change
@@ -418,27 +418,22 @@ gap> dot;
418418
"//dot\ndigraph hgn{\nnode [shape=circle]\n1 [label=\"2\"]\n2 [label=\"2\"]\n3\
419419
[label=\"3\"]\n1 -> 1\n1 -> 2\n1 -> 2\n1 -> 3\n}\n"
420420

421-
# The following tests can't be run because they fail if Semigroups is loaded
422-
# first
423-
# Splash
424-
#gap> Splash(1);
425-
#Error, Digraphs: Splash: usage,
426-
#<arg>[1] must be a string,
427-
#gap> Splash("string", 0);
428-
#Error, Digraphs: Splash: usage,
429-
#<arg>[2] must be a record,
430-
#gap> Splash("string");
431-
#Error, Digraphs: Splash: usage,
432-
#the option <type> must be "dot" or "latex",
433-
#gap> Splash("string", rec(path := "~/", filename := "filename"));
434-
#Error, Digraphs: Splash: usage,
435-
#the option <type> must be "dot" or "latex",
436-
#gap> Splash("string", rec(viewer := "xpdf"));
437-
#Error, Digraphs: Splash: usage,
438-
#the option <type> must be "dot" or "latex",
439-
#gap> Splash("string", rec(type := "dot", engine := "dott"));
440-
#Error, Digraphs: Splash: usage,
441-
#the option <engine> must be "dot", "neato", "twopi", "circo", "fdp", "sfdp", or "patchwork"
421+
# Splash
422+
gap> Splash(1);
423+
Error, the 1st argument must be a string,
424+
gap> Splash("string", 0);
425+
Error, the 2nd argument must be a record,
426+
gap> Splash("string");
427+
Error, the component "type" of the 2nd argument <a record> must be "dot" or "\
428+
latex",
429+
gap> Splash("string", rec(path := "~/", filename := "filename"));
430+
Error, the component "type" of the 2nd argument <a record> must be "dot" or "\
431+
latex",
432+
gap> Splash("string", rec(viewer := "xpdf"));
433+
Error, the viewer "xpdf" specified in the option `viewer` is not available,
434+
gap> Splash("string", rec(type := "dot", engine := "dott"));
435+
Error, the component "engine" of the 2nd argument <a record> must be one of: "\
436+
dot", "neato", "twopi", "circo", "fdp", "sfdp", or "patchwork"
442437

443438
# DotPartialOrderDigraph
444439
gap> gr := Digraph([[1], [1, 2], [1, 3], [1, 4], [1 .. 5], [1 .. 6],

0 commit comments

Comments
 (0)