From e62f499bbd3e4b08e1e70efe2d729dc89215eef2 Mon Sep 17 00:00:00 2001 From: Jonathan Kliem Date: Tue, 30 Jul 2019 14:59:55 +0200 Subject: [PATCH] removed tests involving alarm interrupts --- .../combinatorial_polyhedron/base.pyx | 90 ------------------- 1 file changed, 90 deletions(-) diff --git a/src/sage/geometry/polyhedron/combinatorial_polyhedron/base.pyx b/src/sage/geometry/polyhedron/combinatorial_polyhedron/base.pyx index ef7aa76e997..c15404220d0 100644 --- a/src/sage/geometry/polyhedron/combinatorial_polyhedron/base.pyx +++ b/src/sage/geometry/polyhedron/combinatorial_polyhedron/base.pyx @@ -553,26 +553,6 @@ cdef class CombinatorialPolyhedron(SageObject): sage: P = Polyhedron(rays=[[1,0,0],[0,1,0],[0,0,1],[0,0,-1]]) sage: CombinatorialPolyhedron(P).dimension() 3 - - TESTS:: - - sage: from itertools import combinations - sage: N = combinations(range(1200), 1199) - sage: C = CombinatorialPolyhedron(N) - sage: try: - ....: alarm(0.1) - ....: C.dimension() - ....: except: - ....: print("alarm!") - ....: - alarm! - sage: try: - ....: alarm(0.1) - ....: C.f_vector() - ....: except: - ....: print("alarm!") - ....: - alarm! """ if self._dimension == -2: # Dimension not computed yet. @@ -865,21 +845,6 @@ cdef class CombinatorialPolyhedron(SageObject): ('b', 'c'), ('a', 'c'), ('a', 'b')) - - TESTS:: - - sage: from itertools import combinations - sage: N = combinations(range(200),199) - sage: C = CombinatorialPolyhedron(N) - sage: try: - ....: alarm(0.1) - ....: C.edges() - ....: except: - ....: print("alarm!") - ....: - alarm! - sage: len(C.edges()) - 19900 """ cdef size_t len_edge_list = self._length_edges_list if self._edges is NULL: @@ -1017,21 +982,6 @@ cdef class CombinatorialPolyhedron(SageObject): sage: it = C.face_iter(0) sage: for face in it: face.Hrepr() (An inequality (1, 0) x + 0 >= 0, An equation (0, 1) x + 0 == 0) - - TESTS:: - - sage: from itertools import combinations - sage: N = combinations(range(200),199) - sage: C = CombinatorialPolyhedron(N) - sage: try: - ....: alarm(0.1) - ....: C.ridges() - ....: except: - ....: print("alarm!") - ....: - alarm! - sage: len(C.ridges()) - 19900 """ cdef size_t len_ridge_list = self._length_edges_list if self._ridges is NULL: @@ -1123,46 +1073,6 @@ cdef class CombinatorialPolyhedron(SageObject): sage: C = CombinatorialPolyhedron(P) sage: C.f_vector() (1, 10, 45, 120, 185, 150, 50, 1) - - TESTS:: - - sage: from itertools import combinations - sage: N = combinations(range(25),24) - sage: C = CombinatorialPolyhedron(N) - sage: try: - ....: alarm(0.5) - ....: C.f_vector() - ....: except: - ....: print("alarm!") - ....: - alarm! - sage: C.f_vector() # long time - (1, - 25, - 300, - 2300, - 12650, - 53130, - 177100, - 480700, - 1081575, - 2042975, - 3268760, - 4457400, - 5200300, - 5200300, - 4457400, - 3268760, - 2042975, - 1081575, - 480700, - 177100, - 53130, - 12650, - 2300, - 300, - 25, - 1) """ if not self._f_vector: self._compute_f_vector()