~ubuntu-branches/ubuntu/vivid/regina-normal/vivid-proposed

« back to all changes in this revision

Viewing changes to python/testsuite/euler.test

  • Committer: Package Import Robot
  • Author(s): Ben Burton
  • Date: 2011-09-10 07:17:25 UTC
  • mfrom: (1.2.4 upstream)
  • Revision ID: package-import@ubuntu.com-20110910071725-97n90tywdq60w2cr
Tags: 4.90-1
* New upstream release!
* The user interface has been ported from KDE3 to KDE4 (closes: #556318).
  Re-enabled the GUI as a result.
* The build system has been ported from autotools to cmake.
* The new upstream release builds fine on amd64 (closes: #624882).
* Moved the users' handbook into regina-normal-doc.
* Upgraded several suggests/recommends.  Upgraded regina-normal-mpi to
  depend on mpi-default-bin, and regina-normal to depend on both graphviz
  and regina-normal-doc (which the GUI expends to be present).  Upgraded
  regina-normal to recommend gap.
* Bumped standards-version to 3.9.2.0 (no changes required).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# Regina - A Normal Surface Theory Calculator
2
2
# Python Test Suite Component
3
3
#
4
 
# Copyright (c) 2007-2009, Ben Burton
 
4
# Copyright (c) 2007-2011, Ben Burton
5
5
# For further details contact Ben Burton (bab@debian.org).
6
6
#
7
7
# Tests different Euler characteristic calculations.
66
66
# Edge joined to itself:
67
67
tri = regina.NTriangulation()
68
68
t = regina.NTetrahedron()
69
 
t.joinTo(0, t, regina.NPerm(1,0,3,2))
70
 
t.joinTo(2, t, regina.NPerm(1,0,3,2))
 
69
t.joinTo(0, t, regina.NPerm4(1,0,3,2))
 
70
t.joinTo(2, t, regina.NPerm4(1,0,3,2))
71
71
tri.addTetrahedron(t)
72
72
printEuler(tri, "Invalid edge")
73
73
 
79
79
tri = regina.NTriangulation()
80
80
t = regina.NTetrahedron()
81
81
s = regina.NTetrahedron()
82
 
t.joinTo(3, s, regina.NPerm(0,1,2,3))
83
 
t.joinTo(2, s, regina.NPerm(0,3,1,2))
 
82
t.joinTo(3, s, regina.NPerm4(0,1,2,3))
 
83
t.joinTo(2, s, regina.NPerm4(0,3,1,2))
84
84
tri.addTetrahedron(t)
85
85
tri.addTetrahedron(s)
86
86
printEuler(tri, "Pinched solid torus")
88
88
tri = regina.NTriangulation()
89
89
t = regina.NTetrahedron()
90
90
s = regina.NTetrahedron()
91
 
t.joinTo(3, s, regina.NPerm(0,1,2,3))
92
 
t.joinTo(2, s, regina.NPerm(0,2,1,3))
 
91
t.joinTo(3, s, regina.NPerm4(0,1,2,3))
 
92
t.joinTo(2, s, regina.NPerm4(0,2,1,3))
93
93
tri.addTetrahedron(t)
94
94
tri.addTetrahedron(s)
95
95
printEuler(tri, "Pinched solid Klein bottle")