Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Reduce doctest precision
Browse files Browse the repository at this point in the history
  • Loading branch information
vbraun committed Sep 19, 2014
1 parent a9271f0 commit 3922ed5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -799,6 +799,7 @@ below::
[(1, 2, 3), 'newvalue', 14, 'newervalue']
sage: set(d.values()) == set([14, (1, 2, 3), 'newvalue', 'newervalue'])
True

::

sage: d.items() # random order
Expand Down
10 changes: 5 additions & 5 deletions src/sage/graphs/generic_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -14748,11 +14748,11 @@ def layout(self, layout = None, pos = None, dim = 2, save_pos = False, **options
('1', 0): [1.12..., -0.830...],
('1', 1): [2.50..., -0.545...]}

sage: g.layout(layout = "acyclic_dummy", save_pos = True)
{('0', 0): [0.33..., 0],
('0', 1): [0.33..., 1],
('1', 0): [0.67..., 0],
('1', 1): [0.67..., 1]}
sage: g.layout(layout="acyclic_dummy", save_pos=True)
{('0', 0): [0.3..., 0],
('0', 1): [0.3..., 1],
('1', 0): [0.6..., 0],
('1', 1): [0.6..., 1]}

sage: g.layout(dim = 3)
{('0', 0): [2.02..., 0.528..., 0.343...],
Expand Down

0 comments on commit 3922ed5

Please sign in to comment.