Skip to content

Commit 0a2a918

Browse files
committed
Fixing all of the doctest failures.
1 parent 2648715 commit 0a2a918

File tree

4 files changed

+21
-16
lines changed

4 files changed

+21
-16
lines changed

src/sage/algebras/lie_algebras/bgg_resolution.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ def module_order(self, i):
145145
return []
146146
return self._module_order[i]
147147

148+
148149
@cached_function
149150
def build_differentials(W):
150151
r"""
@@ -164,10 +165,10 @@ def build_differentials(W):
164165
165166
EXAMPLES::
166167
167-
sage: from sage.algebras.lie_algebras.bgg_dual_module import build_differentials
168+
sage: from sage.algebras.lie_algebras.bgg_resolution import build_differentials
168169
sage: W = WeylGroup(['B', 2], prefix='s')
169170
sage: D, O = build_differentials(W)
170-
sage: unicode_art(D)
171+
sage: D
171172
{0: [],
172173
1: [-1 1],
173174
2: [1 1]

src/sage/algebras/lie_algebras/verma_module.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def __init__(self, vector_name='v'):
4747
4848
sage: from sage.algebras.lie_algebras.verma_module import ModulePrinting
4949
sage: MP = ModulePrinting()
50-
sage: TestSuite(MP).run()
50+
sage: TestSuite(MP).run(skip="_test_pickling")
5151
"""
5252
self.__vector_name = vector_name
5353

src/sage/combinat/root_system/root_lattice_realizations.py

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3935,22 +3935,28 @@ def is_verma_dominant(self, positive=True):
39353935
39363936
sage: P = RootSystem(['A', 3]).weight_space()
39373937
sage: La = P.fundamental_weights()
3938+
sage: alphacheck = P.coroot_lattice().positive_roots()
3939+
sage: rho = P.rho()
39383940
sage: (La[1] + 2*La[2]).is_verma_dominant()
39393941
True
3940-
sage: (La[1] - 3/2*La[3]).is_verma_dominant()
3941-
True
3942-
sage: (La[1] - 3/2*La[3]).is_verma_dominant(positive=False)
3942+
sage: la = La[1] - 3/2*La[3] - rho
3943+
sage: la.is_verma_dominant()
39433944
True
3944-
sage: (1/2*La[1] - 3/2*La[3]).is_verma_dominant()
3945+
sage: la.is_verma_dominant(positive=False)
39453946
False
3946-
sage: alphacheck = P.coroot_lattice().positive_roots()
3947-
sage: [(1/2*La[1] - 3/2*La[3]).scalar(coroot) for coroot in alphacheck]
3948-
[1/2, 0, -3/2, 1/2, -3/2, -1]
3949-
sage: (1/2*La[1] - 3/2*La[3]).is_verma_dominant(positive=False)
3947+
sage: [(la+rho).scalar(coroot) for coroot in alphacheck]
3948+
[1, 0, -3/2, 1, -3/2, -1/2]
3949+
sage: mu = 1/2*La[1] - 3/2*La[3] - rho
3950+
sage: mu.is_verma_dominant()
3951+
False
3952+
sage: mu.is_verma_dominant(positive=False)
39503953
True
3954+
sage: [(mu+rho).scalar(coroot) for coroot in alphacheck]
3955+
[1/2, 0, -3/2, 1/2, -3/2, -1]
39513956
"""
3952-
alphacheck = self.parent().coroot_lattice().positive_roots()
3953-
wt = self + self.parent().rho()
3957+
P = self.parent()
3958+
alphacheck = P.coroot_lattice().positive_roots()
3959+
wt = self + P.rho()
39543960
if positive:
39553961
return not any((c := wt.scalar(ac)) in ZZ and c < 0 for ac in alphacheck)
39563962
return not any((c := wt.scalar(ac)) in ZZ and c > 0 for ac in alphacheck)

src/sage/groups/indexed_free_group.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -346,9 +346,7 @@ def _element_constructor_(self, x=None):
346346
sage: G({1: 3, -2: 12})
347347
F[-2]^12*F[1]^3
348348
sage: G(-5)
349-
Traceback (most recent call last):
350-
...
351-
TypeError: unable to convert -5, use gen() instead
349+
F[-5]
352350
353351
TESTS::
354352

0 commit comments

Comments
 (0)