regina 7.3.1.1__cp311-cp311-macosx_10_9_x86_64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of regina might be problematic. Click here for more details.
- regina/.dylibs/libgmp.10.dylib +0 -0
- regina/.dylibs/libgmpxx.4.dylib +0 -0
- regina/__init__.py +203 -0
- regina/engine.cpython-311-darwin.so +0 -0
- regina/plainCompleter.py +221 -0
- regina/pyCensus/__init__.py +14 -0
- regina/pyCensus/christy-knots-links.tdb +0 -0
- regina/pyCensus/closed-hyp-census-full.tdb +0 -0
- regina/pyCensus/closed-nor-census-11.tdb +0 -0
- regina/pyCensus/closed-or-census-11.tdb +0 -0
- regina/pyCensus/cusped-hyp-nor-census-9.tdb +0 -0
- regina/pyCensus/cusped-hyp-or-census-9.tdb +0 -0
- regina/sageRegina/__init__.py +2 -0
- regina/sageRegina/config.py +9 -0
- regina/sageRegina/test.py +132 -0
- regina/sageRegina/testsuite/CMakeLists.txt +60 -0
- regina/sageRegina/testsuite/O2_1.rga +15 -0
- regina/sageRegina/testsuite/O2_1.tri +28 -0
- regina/sageRegina/testsuite/README.txt +20 -0
- regina/sageRegina/testsuite/alltypes.out +1551 -0
- regina/sageRegina/testsuite/alltypes.test +88 -0
- regina/sageRegina/testsuite/angles.out +102 -0
- regina/sageRegina/testsuite/angles.test +72 -0
- regina/sageRegina/testsuite/basic_callback.out +124 -0
- regina/sageRegina/testsuite/basic_sub.out +7 -0
- regina/sageRegina/testsuite/bool.out +6 -0
- regina/sageRegina/testsuite/bool.test +64 -0
- regina/sageRegina/testsuite/bytes.out +17 -0
- regina/sageRegina/testsuite/bytes.test +78 -0
- regina/sageRegina/testsuite/callbacks.out +515 -0
- regina/sageRegina/testsuite/callbacks.test +281 -0
- regina/sageRegina/testsuite/census.out +120 -0
- regina/sageRegina/testsuite/census.test +157 -0
- regina/sageRegina/testsuite/clone.out +18 -0
- regina/sageRegina/testsuite/clone.test +101 -0
- regina/sageRegina/testsuite/constructors.out +14 -0
- regina/sageRegina/testsuite/constructors.test +97 -0
- regina/sageRegina/testsuite/cube.orb +87 -0
- regina/sageRegina/testsuite/discs.out +3 -0
- regina/sageRegina/testsuite/discs.test +40 -0
- regina/sageRegina/testsuite/docstrings.filter +19 -0
- regina/sageRegina/testsuite/docstrings.out +808 -0
- regina/sageRegina/testsuite/docstrings.out.v3 +808 -0
- regina/sageRegina/testsuite/docstrings.test +57 -0
- regina/sageRegina/testsuite/dodec.orb +309 -0
- regina/sageRegina/testsuite/embeddings.out +23 -0
- regina/sageRegina/testsuite/embeddings.test +89 -0
- regina/sageRegina/testsuite/enumerate.out +62 -0
- regina/sageRegina/testsuite/enumerate.test +82 -0
- regina/sageRegina/testsuite/equality.out +112 -0
- regina/sageRegina/testsuite/equality.test +310 -0
- regina/sageRegina/testsuite/euler.out +15 -0
- regina/sageRegina/testsuite/euler.test +95 -0
- regina/sageRegina/testsuite/exception.out +7 -0
- regina/sageRegina/testsuite/exception.test +100 -0
- regina/sageRegina/testsuite/facenumbering.out +546 -0
- regina/sageRegina/testsuite/facenumbering.test +74 -0
- regina/sageRegina/testsuite/faces.out +40 -0
- regina/sageRegina/testsuite/faces.test +72 -0
- regina/sageRegina/testsuite/file.out +1229 -0
- regina/sageRegina/testsuite/file.test +70 -0
- regina/sageRegina/testsuite/file1.rga +0 -0
- regina/sageRegina/testsuite/file2.rga +0 -0
- regina/sageRegina/testsuite/file3.rga +119 -0
- regina/sageRegina/testsuite/flype.out +37 -0
- regina/sageRegina/testsuite/flype.test +50 -0
- regina/sageRegina/testsuite/generic.out +116 -0
- regina/sageRegina/testsuite/generic.test +76 -0
- regina/sageRegina/testsuite/groups.out +70 -0
- regina/sageRegina/testsuite/groups.test +117 -0
- regina/sageRegina/testsuite/hypersurfaces.out +681 -0
- regina/sageRegina/testsuite/hypersurfaces.test +90 -0
- regina/sageRegina/testsuite/i18n-latin1.rga +8 -0
- regina/sageRegina/testsuite/i18n-utf8.rga +8 -0
- regina/sageRegina/testsuite/i18n.out +6 -0
- regina/sageRegina/testsuite/i18n.test +91 -0
- regina/sageRegina/testsuite/id.out +2 -0
- regina/sageRegina/testsuite/id.test +47 -0
- regina/sageRegina/testsuite/index.out +2 -0
- regina/sageRegina/testsuite/index.test +43 -0
- regina/sageRegina/testsuite/integer.out +74 -0
- regina/sageRegina/testsuite/integer.test +56 -0
- regina/sageRegina/testsuite/italian.orb +90 -0
- regina/sageRegina/testsuite/iterators.out +118 -0
- regina/sageRegina/testsuite/iterators.test +128 -0
- regina/sageRegina/testsuite/knotted-Y.orb +47 -0
- regina/sageRegina/testsuite/listener.out +43 -0
- regina/sageRegina/testsuite/listener.test +101 -0
- regina/sageRegina/testsuite/listview.out +416 -0
- regina/sageRegina/testsuite/listview.test +253 -0
- regina/sageRegina/testsuite/lookup.out +13 -0
- regina/sageRegina/testsuite/lookup.test +44 -0
- regina/sageRegina/testsuite/memory1.out +62 -0
- regina/sageRegina/testsuite/memory1.test +154 -0
- regina/sageRegina/testsuite/memory2.out +62 -0
- regina/sageRegina/testsuite/memory2.test +124 -0
- regina/sageRegina/testsuite/memory3.out +92 -0
- regina/sageRegina/testsuite/memory3.test +216 -0
- regina/sageRegina/testsuite/misc.out +7 -0
- regina/sageRegina/testsuite/misc.test +56 -0
- regina/sageRegina/testsuite/operators.out +129 -0
- regina/sageRegina/testsuite/operators.test +61 -0
- regina/sageRegina/testsuite/orb.out +441 -0
- regina/sageRegina/testsuite/orb.test +49 -0
- regina/sageRegina/testsuite/pdf.out +4 -0
- regina/sageRegina/testsuite/pdf.test +49 -0
- regina/sageRegina/testsuite/perm.out +55 -0
- regina/sageRegina/testsuite/perm.test +96 -0
- regina/sageRegina/testsuite/plantri.out +12 -0
- regina/sageRegina/testsuite/plantri.test +60 -0
- regina/sageRegina/testsuite/presentations.out +11 -0
- regina/sageRegina/testsuite/presentations.test +61 -0
- regina/sageRegina/testsuite/refs.out +51 -0
- regina/sageRegina/testsuite/refs.test +128 -0
- regina/sageRegina/testsuite/repr.out +951 -0
- regina/sageRegina/testsuite/repr.out.v3 +951 -0
- regina/sageRegina/testsuite/repr.test +548 -0
- regina/sageRegina/testsuite/safeheldtype_basic.out +17 -0
- regina/sageRegina/testsuite/safeheldtype_basic.test +113 -0
- regina/sageRegina/testsuite/safeheldtype_packet.out +58 -0
- regina/sageRegina/testsuite/safeheldtype_packet.test +181 -0
- regina/sageRegina/testsuite/sample.pdf +0 -0
- regina/sageRegina/testsuite/sets.out +7 -0
- regina/sageRegina/testsuite/sets.test +44 -0
- regina/sageRegina/testsuite/skeleton.out +308 -0
- regina/sageRegina/testsuite/skeleton.test +54 -0
- regina/sageRegina/testsuite/snappea.out +82 -0
- regina/sageRegina/testsuite/snappea.test +107 -0
- regina/sageRegina/testsuite/snapshot.out +15 -0
- regina/sageRegina/testsuite/snapshot.test +78 -0
- regina/sageRegina/testsuite/sort.out +57 -0
- regina/sageRegina/testsuite/sort.test +53 -0
- regina/sageRegina/testsuite/special.out +4 -0
- regina/sageRegina/testsuite/special.test +47 -0
- regina/sageRegina/testsuite/standardtri.out +12101 -0
- regina/sageRegina/testsuite/standardtri.test +455 -0
- regina/sageRegina/testsuite/surfaces.out +2133 -0
- regina/sageRegina/testsuite/surfaces.test +114 -0
- regina/sageRegina/testsuite/swapping.out +25 -0
- regina/sageRegina/testsuite/swapping.test +88 -0
- regina/sageRegina/testsuite/testall.in +176 -0
- regina/sageRegina/testsuite/testbasic.in +279 -0
- regina/sageRegina/testsuite/testcallback.in +150 -0
- regina/sageRegina/testsuite/testsub.in +150 -0
- regina/sageRegina/testsuite/theta_in_solid_torus.orb +65 -0
- regina/sageRegina/testsuite/tightencode.out +40 -0
- regina/sageRegina/testsuite/tightencode.test +108 -0
- regina/sageRegina/testsuite/treedecomp.out +135 -0
- regina/sageRegina/testsuite/treedecomp.test +66 -0
- regina/sageRegina/testsuite/treetraversal.out +52 -0
- regina/sageRegina/testsuite/treetraversal.test +190 -0
- regina/sageRegina/testsuite/trigeneral.out +1251 -0
- regina/sageRegina/testsuite/trigeneral.test +155 -0
- regina/sageRegina/testsuite/utf8.out +42 -0
- regina/sageRegina/testsuite/utf8.test +94 -0
- regina/sageRegina/version.py +5 -0
- regina/sageSetup.py +41 -0
- regina/test.py +6 -0
- regina-7.3.1.1.dist-info/METADATA +109 -0
- regina-7.3.1.1.dist-info/RECORD +162 -0
- regina-7.3.1.1.dist-info/WHEEL +6 -0
- regina-7.3.1.1.dist-info/top_level.txt +4 -0
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
# Regina - A Normal Surface Theory Calculator
|
|
2
|
+
# Python Test Suite Component
|
|
3
|
+
#
|
|
4
|
+
# Copyright (c) 2015-2023, Ben Burton
|
|
5
|
+
# For further details contact Ben Burton (bab@debian.org).
|
|
6
|
+
#
|
|
7
|
+
# Prints basic properties of all wrapped objects and types.
|
|
8
|
+
#
|
|
9
|
+
# This file is a single component of Regina's python test suite. To run
|
|
10
|
+
# the python test suite, move to the main python directory in the source
|
|
11
|
+
# tree and run "make check".
|
|
12
|
+
#
|
|
13
|
+
# This program is free software; you can redistribute it and/or
|
|
14
|
+
# modify it under the terms of the GNU General Public License as
|
|
15
|
+
# published by the Free Software Foundation; either version 2 of the
|
|
16
|
+
# License, or (at your option) any later version.
|
|
17
|
+
#
|
|
18
|
+
# As an exception, when this program is distributed through (i) the
|
|
19
|
+
# App Store by Apple Inc.; (ii) the Mac App Store by Apple Inc.; or
|
|
20
|
+
# (iii) Google Play by Google Inc., then that store may impose any
|
|
21
|
+
# digital rights management, device limits and/or redistribution
|
|
22
|
+
# restrictions that are required by its terms of service.
|
|
23
|
+
#
|
|
24
|
+
# This program is distributed in the hope that it will be useful, but
|
|
25
|
+
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
26
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
27
|
+
# General Public License for more details.
|
|
28
|
+
#
|
|
29
|
+
# You should have received a copy of the GNU General Public
|
|
30
|
+
# License along with this program; if not, write to the Free
|
|
31
|
+
# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
|
|
32
|
+
# MA 02110-1301, USA.
|
|
33
|
+
|
|
34
|
+
import re
|
|
35
|
+
|
|
36
|
+
regex = re.compile("^<class 'regina\\.engine\\.(.+)'>$")
|
|
37
|
+
|
|
38
|
+
def classInfo(name, object):
|
|
39
|
+
m = regex.match(str(object))
|
|
40
|
+
if not m:
|
|
41
|
+
print(name, ': ERROR - could not determine real class name.')
|
|
42
|
+
else:
|
|
43
|
+
realName = m.group(1)
|
|
44
|
+
if realName == name:
|
|
45
|
+
if name == 'Bitmask256' or name == 'Qitmask256':
|
|
46
|
+
# These classes are only present on 64-bit machines.
|
|
47
|
+
# Omit them here so that this test generates the same output
|
|
48
|
+
# across all platforms.
|
|
49
|
+
return
|
|
50
|
+
print(name, ': class')
|
|
51
|
+
try:
|
|
52
|
+
print('Equality type :', object.equalityType)
|
|
53
|
+
except:
|
|
54
|
+
# We allow this for exception types.
|
|
55
|
+
if object.__base__ is RuntimeError:
|
|
56
|
+
print('Exception type')
|
|
57
|
+
else:
|
|
58
|
+
print('ERROR: No equality type')
|
|
59
|
+
else:
|
|
60
|
+
print(name, ': alias -> ', realName)
|
|
61
|
+
print()
|
|
62
|
+
|
|
63
|
+
def enumInfo(name, object):
|
|
64
|
+
# print name, ': enum'
|
|
65
|
+
pass
|
|
66
|
+
|
|
67
|
+
def functionInfo(name, object):
|
|
68
|
+
# print name, ': function'
|
|
69
|
+
pass
|
|
70
|
+
|
|
71
|
+
def objectInfo(name, object):
|
|
72
|
+
# print name, ': object'
|
|
73
|
+
pass
|
|
74
|
+
|
|
75
|
+
keys = sorted(regina.__dict__)
|
|
76
|
+
|
|
77
|
+
for i in keys:
|
|
78
|
+
object = regina.__dict__[i]
|
|
79
|
+
if isinstance(object, type):
|
|
80
|
+
try:
|
|
81
|
+
tmp = object.__members__ # Exists for enums, not classes
|
|
82
|
+
enumInfo(i, object)
|
|
83
|
+
except AttributeError:
|
|
84
|
+
classInfo(i, object)
|
|
85
|
+
elif 'builtin_function_or_method' in str(object.__class__):
|
|
86
|
+
functionInfo(i, object)
|
|
87
|
+
else:
|
|
88
|
+
objectInfo(i, object)
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
-------------------------------
|
|
2
|
+
Empty triangulation
|
|
3
|
+
Vertex angle structures
|
|
4
|
+
-------------------------------
|
|
5
|
+
|
|
6
|
+
1 vertex angle structure (no restrictions):
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
-------------------------------
|
|
11
|
+
Empty triangulation
|
|
12
|
+
Taut angle structures
|
|
13
|
+
-------------------------------
|
|
14
|
+
|
|
15
|
+
1 vertex angle structure (taut only):
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
-------------------------------
|
|
20
|
+
Figure eight knot complement
|
|
21
|
+
Vertex angle structures
|
|
22
|
+
-------------------------------
|
|
23
|
+
|
|
24
|
+
5 vertex angle structures (no restrictions):
|
|
25
|
+
1 0 0 ; 1 0 0
|
|
26
|
+
1 0 0 ; 0 1/2 1/2
|
|
27
|
+
0 1/2 1/2 ; 1 0 0
|
|
28
|
+
0 1 0 ; 0 0 1
|
|
29
|
+
0 0 1 ; 0 1 0
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
-------------------------------
|
|
33
|
+
Figure eight knot complement
|
|
34
|
+
Taut angle structures
|
|
35
|
+
-------------------------------
|
|
36
|
+
|
|
37
|
+
3 vertex angle structures (taut only):
|
|
38
|
+
1 0 0 ; 1 0 0
|
|
39
|
+
0 1 0 ; 0 0 1
|
|
40
|
+
0 0 1 ; 0 1 0
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
-------------------------------
|
|
44
|
+
Whitehead link complement
|
|
45
|
+
Vertex angle structures
|
|
46
|
+
-------------------------------
|
|
47
|
+
|
|
48
|
+
18 vertex angle structures (no restrictions):
|
|
49
|
+
1/2 1/2 0 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0 0 1
|
|
77
|
+
1 0 0 ; 0 1 0 ; 1 0 0 ; 0 1 0
|
|
78
|
+
1 0 0 ; 0 0 1 ; 1 0 0 ; 0 0 1
|
|
79
|
+
1 0 0 ; 0 0 1 ; 0 0 1 ; 1 0 0
|
|
80
|
+
0 1 0 ; 1 0 0 ; 0 1 0 ; 1 0 0
|
|
81
|
+
0 1 0 ; 0 1 0 ; 1 0 0 ; 1 0 0
|
|
82
|
+
0 0 1 ; 1 0 0 ; 1 0 0 ; 0 0 1
|
|
83
|
+
0 0 1 ; 1 0 0 ; 0 0 1 ; 1 0 0
|
|
84
|
+
0 0 1 ; 0 0 1 ; 1 0 0 ; 1 0 0
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
-------------------------------
|
|
88
|
+
Poincare homology sphere
|
|
89
|
+
Vertex angle structures
|
|
90
|
+
-------------------------------
|
|
91
|
+
|
|
92
|
+
0 vertex angle structures (no restrictions):
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
-------------------------------
|
|
96
|
+
Poincare homology sphere
|
|
97
|
+
Taut angle structures
|
|
98
|
+
-------------------------------
|
|
99
|
+
|
|
100
|
+
0 vertex angle structures (taut only):
|
|
101
|
+
|
|
102
|
+
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# Regina - A Normal Surface Theory Calculator
|
|
2
|
+
# Python Test Suite Component
|
|
3
|
+
#
|
|
4
|
+
# Copyright (c) 2007-2023, Ben Burton
|
|
5
|
+
# For further details contact Ben Burton (bab@debian.org).
|
|
6
|
+
#
|
|
7
|
+
# Provides various tests for angle structure enumeration.
|
|
8
|
+
#
|
|
9
|
+
# This file is a single component of Regina's python test suite. To run
|
|
10
|
+
# the python test suite, move to the main python directory in the source
|
|
11
|
+
# tree and run "make check".
|
|
12
|
+
#
|
|
13
|
+
# This program is free software; you can redistribute it and/or
|
|
14
|
+
# modify it under the terms of the GNU General Public License as
|
|
15
|
+
# published by the Free Software Foundation; either version 2 of the
|
|
16
|
+
# License, or (at your option) any later version.
|
|
17
|
+
#
|
|
18
|
+
# As an exception, when this program is distributed through (i) the
|
|
19
|
+
# App Store by Apple Inc.; (ii) the Mac App Store by Apple Inc.; or
|
|
20
|
+
# (iii) Google Play by Google Inc., then that store may impose any
|
|
21
|
+
# digital rights management, device limits and/or redistribution
|
|
22
|
+
# restrictions that are required by its terms of service.
|
|
23
|
+
#
|
|
24
|
+
# This program is distributed in the hope that it will be useful, but
|
|
25
|
+
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
26
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
27
|
+
# General Public License for more details.
|
|
28
|
+
#
|
|
29
|
+
# You should have received a copy of the GNU General Public
|
|
30
|
+
# License along with this program; if not, write to the Free
|
|
31
|
+
# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
|
|
32
|
+
# MA 02110-1301, USA.
|
|
33
|
+
|
|
34
|
+
def dumpAngles(name, tri, triName, tautOnly = False):
|
|
35
|
+
try:
|
|
36
|
+
slist = regina.AngleStructures(tri, tautOnly)
|
|
37
|
+
except:
|
|
38
|
+
print("-------------------------------")
|
|
39
|
+
print(name)
|
|
40
|
+
print('ENUMERATION FAILED')
|
|
41
|
+
print("-------------------------------")
|
|
42
|
+
print()
|
|
43
|
+
return
|
|
44
|
+
|
|
45
|
+
print("-------------------------------")
|
|
46
|
+
print(triName)
|
|
47
|
+
print(name)
|
|
48
|
+
print("-------------------------------")
|
|
49
|
+
print()
|
|
50
|
+
|
|
51
|
+
# Dump the angle structures in sort order, since we don't really mind if
|
|
52
|
+
# the ordering changes between releases.
|
|
53
|
+
structures = slist.detail().split('\n')
|
|
54
|
+
structures.sort()
|
|
55
|
+
# Let the text headers appear up top.
|
|
56
|
+
structures.reverse()
|
|
57
|
+
for s in structures:
|
|
58
|
+
print(s)
|
|
59
|
+
|
|
60
|
+
# Nothing else to say.
|
|
61
|
+
print()
|
|
62
|
+
|
|
63
|
+
def angleStats(tri, triName):
|
|
64
|
+
dumpAngles('Vertex angle structures', tri, triName, False)
|
|
65
|
+
dumpAngles('Taut angle structures', tri, triName, True)
|
|
66
|
+
|
|
67
|
+
t = regina.Triangulation3()
|
|
68
|
+
angleStats(t, 'Empty triangulation')
|
|
69
|
+
|
|
70
|
+
angleStats(regina.Example3.figureEight(), 'Figure eight knot complement')
|
|
71
|
+
angleStats(regina.Example3.whiteheadLink(), 'Whitehead link complement')
|
|
72
|
+
angleStats(regina.Example3.poincare(), 'Poincare homology sphere')
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
Embedded, vertex surfaces
|
|
2
|
+
Coordinates: Standard normal (tri-quad)
|
|
3
|
+
Number of surfaces is 7
|
|
4
|
+
0 1 0 1 ; 0 1 0 || 0 0 1 1 ; 1 0 0 || 1 0 1 0 ; 0 1 0 || 0 1 0 1 ; 0 1 0 || 1 1 0 0 ; 1 0 0
|
|
5
|
+
1 1 0 0 ; 1 0 0 || 1 0 0 1 ; 0 0 1 || 1 0 0 1 ; 0 0 1 || 0 1 1 0 ; 0 0 1 || 0 0 1 1 ; 1 0 0
|
|
6
|
+
0 0 1 1 ; 1 0 0 || 0 1 0 1 ; 0 1 0 || 0 1 0 1 ; 0 1 0 || 1 1 0 0 ; 1 0 0 || 1 0 1 0 ; 0 1 0
|
|
7
|
+
0 1 1 0 ; 0 0 1 || 0 1 1 0 ; 0 0 1 || 1 1 0 0 ; 1 0 0 || 1 0 1 0 ; 0 1 0 || 0 1 0 1 ; 0 1 0
|
|
8
|
+
1 0 0 1 ; 0 0 1 || 1 1 0 0 ; 1 0 0 || 0 1 1 0 ; 0 0 1 || 0 0 1 1 ; 1 0 0 || 1 0 0 1 ; 0 0 1
|
|
9
|
+
1 0 1 0 ; 0 1 0 || 1 0 1 0 ; 0 1 0 || 0 0 1 1 ; 1 0 0 || 1 0 0 1 ; 0 0 1 || 0 1 1 0 ; 0 0 1
|
|
10
|
+
1 1 1 1 ; 0 0 0 || 1 1 1 1 ; 0 0 0 || 1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|| 0 0 1 1 ; 1 0 0
|
|
109
|
+
1 1 1 1 ; 0 0 0 || 1 1 1 1 ; 0 0 0 || 1 1 1 1 ; 0 0 0 || 1 1 1 1 ; 0 0 0 || 1 1 1 1 ; 0 0 0
|
|
110
|
+
|
|
111
|
+
( 0 0 0 0 1 1 1 0 0 0 0 1 1 1 )
|
|
112
|
+
( 0 0 0 0 1 1 1 1 1 1 1 0 0 0 )
|
|
113
|
+
( 0 0 0 0 1 1 3 1 1 0 0 1 0 2 )
|
|
114
|
+
( 0 0 0 0 2 2 0 0 0 1 1 1 2 0 )
|
|
115
|
+
( 0 0 1 1 0 1 3 2 2 0 0 0 0 2 )
|
|
116
|
+
( 0 0 1 1 1 2 0 0 0 0 0 1 3 1 )
|
|
117
|
+
( 0 0 1 1 1 2 0 1 1 1 1 0 2 0 )
|
|
118
|
+
( 0 0 2 2 0 2 0 1 1 0 0 0 3 1 )
|
|
119
|
+
( 1 1 0 0 1 0 0 0 0 1 1 1 0 0 )
|
|
120
|
+
( 1 1 0 0 1 0 2 0 0 0 0 2 0 2 )
|
|
121
|
+
( 1 1 1 1 0 0 0 0 0 0 0 1 1 1 )
|
|
122
|
+
( 1 1 1 1 0 0 0 1 1 1 1 0 0 0 )
|
|
123
|
+
( 1 1 1 1 0 0 2 1 1 0 0 1 0 2 )
|
|
124
|
+
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# Regina - A Normal Surface Theory Calculator
|
|
2
|
+
# Python Test Suite Component
|
|
3
|
+
#
|
|
4
|
+
# Copyright (c) 2007-2023, Ben Burton
|
|
5
|
+
# For further details contact Ben Burton (bab@debian.org).
|
|
6
|
+
#
|
|
7
|
+
# Tests casts to booleans.
|
|
8
|
+
#
|
|
9
|
+
# This file is a single component of Regina's python test suite. To run
|
|
10
|
+
# the python test suite, move to the main python directory in the source
|
|
11
|
+
# tree and run "make check".
|
|
12
|
+
#
|
|
13
|
+
# This program is free software; you can redistribute it and/or
|
|
14
|
+
# modify it under the terms of the GNU General Public License as
|
|
15
|
+
# published by the Free Software Foundation; either version 2 of the
|
|
16
|
+
# License, or (at your option) any later version.
|
|
17
|
+
#
|
|
18
|
+
# As an exception, when this program is distributed through (i) the
|
|
19
|
+
# App Store by Apple Inc.; (ii) the Mac App Store by Apple Inc.; or
|
|
20
|
+
# (iii) Google Play by Google Inc., then that store may impose any
|
|
21
|
+
# digital rights management, device limits and/or redistribution
|
|
22
|
+
# restrictions that are required by its terms of service.
|
|
23
|
+
#
|
|
24
|
+
# This program is distributed in the hope that it will be useful, but
|
|
25
|
+
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
26
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
27
|
+
# General Public License for more details.
|
|
28
|
+
#
|
|
29
|
+
# You should have received a copy of the GNU General Public
|
|
30
|
+
# License along with this program; if not, write to the Free
|
|
31
|
+
# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
|
|
32
|
+
# MA 02110-1301, USA.
|
|
33
|
+
|
|
34
|
+
if DiscType(0, 0):
|
|
35
|
+
print('Non-null disc type')
|
|
36
|
+
else:
|
|
37
|
+
print('Null disc type')
|
|
38
|
+
|
|
39
|
+
if DiscType():
|
|
40
|
+
print('Non-null disc type')
|
|
41
|
+
else:
|
|
42
|
+
print('Null disc type')
|
|
43
|
+
|
|
44
|
+
if ExampleLink.whitehead().component(0):
|
|
45
|
+
print('Non-null strand ref')
|
|
46
|
+
else:
|
|
47
|
+
print('Null strand ref')
|
|
48
|
+
|
|
49
|
+
if Link(1).component(0):
|
|
50
|
+
print('Non-null strand ref')
|
|
51
|
+
else:
|
|
52
|
+
print('Null strand ref')
|
|
53
|
+
|
|
54
|
+
g = ModelLinkGraph.fromPlantri('bcdd,aeec,abfd,acfa,bffb,ceed')
|
|
55
|
+
if g.node(0).adj(0):
|
|
56
|
+
print('Non-null graph arc')
|
|
57
|
+
else:
|
|
58
|
+
print('Null graph arc')
|
|
59
|
+
|
|
60
|
+
if ModelLinkGraphArc():
|
|
61
|
+
print('Non-null graph arc')
|
|
62
|
+
else:
|
|
63
|
+
print('Null graph arc')
|
|
64
|
+
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# Regina - A Normal Surface Theory Calculator
|
|
2
|
+
# Python Test Suite Component
|
|
3
|
+
#
|
|
4
|
+
# Copyright (c) 2007-2023, Ben Burton
|
|
5
|
+
# For further details contact Ben Burton (bab@debian.org).
|
|
6
|
+
#
|
|
7
|
+
# Tests code that works with raw byte sequences.
|
|
8
|
+
#
|
|
9
|
+
# This file is a single component of Regina's python test suite. To run
|
|
10
|
+
# the python test suite, move to the main python directory in the source
|
|
11
|
+
# tree and run "make check".
|
|
12
|
+
#
|
|
13
|
+
# This program is free software; you can redistribute it and/or
|
|
14
|
+
# modify it under the terms of the GNU General Public License as
|
|
15
|
+
# published by the Free Software Foundation; either version 2 of the
|
|
16
|
+
# License, or (at your option) any later version.
|
|
17
|
+
#
|
|
18
|
+
# As an exception, when this program is distributed through (i) the
|
|
19
|
+
# App Store by Apple Inc.; (ii) the Mac App Store by Apple Inc.; or
|
|
20
|
+
# (iii) Google Play by Google Inc., then that store may impose any
|
|
21
|
+
# digital rights management, device limits and/or redistribution
|
|
22
|
+
# restrictions that are required by its terms of service.
|
|
23
|
+
#
|
|
24
|
+
# This program is distributed in the hope that it will be useful, but
|
|
25
|
+
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
26
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
27
|
+
# General Public License for more details.
|
|
28
|
+
#
|
|
29
|
+
# You should have received a copy of the GNU General Public
|
|
30
|
+
# License along with this program; if not, write to the Free
|
|
31
|
+
# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
|
|
32
|
+
# MA 02110-1301, USA.
|
|
33
|
+
|
|
34
|
+
b = b'asdf'
|
|
35
|
+
s = regina.base64Encode(b)
|
|
36
|
+
print(s)
|
|
37
|
+
b2 = regina.base64Decode(s)
|
|
38
|
+
print(b == b2)
|
|
39
|
+
|
|
40
|
+
b = b'a\0df'
|
|
41
|
+
s = regina.base64Encode(b)
|
|
42
|
+
print(s)
|
|
43
|
+
b2 = regina.base64Decode(s)
|
|
44
|
+
print(b == b2)
|
|
45
|
+
|
|
46
|
+
b = b'\0\0\0\0\0'
|
|
47
|
+
s = regina.base64Encode(b)
|
|
48
|
+
print(s)
|
|
49
|
+
b2 = regina.base64Decode(s)
|
|
50
|
+
print(b == b2)
|
|
51
|
+
|
|
52
|
+
b = b'\0\0\0\0\0\0'
|
|
53
|
+
s = regina.base64Encode(b)
|
|
54
|
+
print(s)
|
|
55
|
+
b2 = regina.base64Decode(s)
|
|
56
|
+
print(b == b2)
|
|
57
|
+
|
|
58
|
+
print(regina.base64Decode('!!')) # should be None
|
|
59
|
+
|
|
60
|
+
print()
|
|
61
|
+
|
|
62
|
+
########################################################################
|
|
63
|
+
|
|
64
|
+
a = Attachment()
|
|
65
|
+
print(a.data())
|
|
66
|
+
|
|
67
|
+
b = b'as\0df'
|
|
68
|
+
a = Attachment(b, 'bytes.dat')
|
|
69
|
+
print(a.size())
|
|
70
|
+
print(base64Encode(b))
|
|
71
|
+
print(base64Encode(a.data()))
|
|
72
|
+
|
|
73
|
+
b = b'\0\0\0'
|
|
74
|
+
a.reset(b, 'null.dat')
|
|
75
|
+
print(a.size())
|
|
76
|
+
print(base64Encode(b))
|
|
77
|
+
print(base64Encode(a.data()))
|
|
78
|
+
|