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

Commit

Permalink
Fixing doctest ordering.
Browse files Browse the repository at this point in the history
  • Loading branch information
Travis Scrimshaw committed Mar 9, 2016
1 parent 7a387fa commit e3175db
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/sage/structure/indexed_generators.py
Expand Up @@ -462,7 +462,7 @@ def split_index_keywords(kwds):
sage: from sage.structure.indexed_generators import split_index_keywords
sage: d = {'string_quotes': False, 'bracket': None, 'base': QQ}
sage: split_index_keywords(d)
{'string_quotes': False, 'bracket': None}
{'bracket': None, 'string_quotes': False}
sage: d
{'base': Rational Field}
"""
Expand Down Expand Up @@ -509,7 +509,7 @@ def parse_indices_names(indices, names, prefix, kwds={}):
sage: parse_indices_names(None, 'x,y,z', None, d)
({'x', 'y', 'z'}, ('x', 'y', 'z'), '')
sage: d
{'string_quotes': False, 'bracket': False}
{'bracket': False, 'string_quotes': False}
sage: d = {}
sage: parse_indices_names(ZZ, None, None, d)
(Integer Ring, None, None)
Expand All @@ -522,11 +522,11 @@ def parse_indices_names(indices, names, prefix, kwds={}):
sage: parse_indices_names(ZZ, ['x','y','z'], 'x', d)
(Integer Ring, ['x', 'y', 'z'], 'x')
sage: d
{'string_quotes': True, 'bracket': '['}
{'bracket': '[', 'string_quotes': True}
sage: parse_indices_names(None, 'x,y,z', 'A', d)
({'x', 'y', 'z'}, ('x', 'y', 'z'), 'A')
sage: d
{'string_quotes': True, 'bracket': '['}
{'bracket': '[', 'string_quotes': True}
"""
if indices is None:
if names is None:
Expand Down

0 comments on commit e3175db

Please sign in to comment.