File: test.g

package info (click to toggle)
gap-hap 1.66%2Bds-1
  • links: PTS
  • area: main
  • in suites: trixie
  • size: 55,348 kB
  • sloc: xml: 15,368; sh: 216; javascript: 155; makefile: 126; ansic: 57; perl: 36
file content (69 lines) | stat: -rw-r--r-- 1,779 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#################################################
#################################################
InstallGlobalFunction(HapFile,
function(str)
local exfile;

exfile:=DirectoriesPackageLibrary("HAP","tst/examples");;
exfile:=Filename(exfile,str);;

return exfile;
end);
#################################################
#################################################

#################################################
#################################################
InstallGlobalFunction(HapExample,
function(str)
local exfile, input, linefile, x;

exfile:=DirectoriesPackageLibrary("HAP","tst/examples");;
exfile:=Filename(exfile, str);;

input:=InputTextFile(exfile);
x:=ReadLine(input);
while not x=fail do
Print("gap> ");
Print(x);
x:=ReadLine(input);
od;
Print("\n\n");
Read(exfile);
end);
#################################################
#################################################






#################################################
#################################################
InstallGlobalFunction(TestHapBook,
function()
ReadPackage("HAP","tst/testallextra.g");
end);
#################################################
#################################################

#################################################
#################################################
InstallGlobalFunction(TestHap,
function()
ReadPackage("HAP","tst/testall.g");
end);
#################################################
#################################################

#################################################
#################################################
InstallGlobalFunction(TestHapQuick,
function()
ReadPackage("HAP","tst/testquick.g");
end);
#################################################
#################################################