Skip to content

Commit 24de879

Browse files
author
Release Manager
committed
gh-36149: Fix doctest in `src/sage/algebras/quantum_groups/quantum_group_gap.py` We fix the following doctest reported on [sage- release](https://groups.google.com/g/sage- release/c/achheVoUbrY/m/MZr7VNnpFgAJ) ``` sage -t --long --warn-long 216.1 --random- seed=336915508420415526544989948662812522502 src/sage/algebras/quantum_groups/quantum_group_gap.py ********************************************************************** File "src/sage/algebras/quantum_groups/quantum_group_gap.py", line 1581, in sage.algebras.quantum_groups.quantum_group_gap.QuantumGroupModule._la tex_ Failed example: latex(S) Expected: \begin{tikzpicture} ... \end{tikzpicture} Got: \begin{tikzpicture}[>=latex,line join=bevel,] %% \node (node_0) at (144.52bp,292.63bp) [draw,draw=none] {$\langle 1 {(1 v_0 \otimes 1 v_0)} \rangle$}; \node (node_1) at (144.52bp,221.71bp) [draw,draw=none] {$\langle 1 {(1 v_0 \otimes F[a1] v_0)} + q^{-1} {(F[a1] v_0 \otimes 1 v_0)} \rangle$}; \node (node_2) at (52.519bp,150.47bp) [draw,draw=none] {$\langle 1 {(F[a1] v_0 \otimes F[a1] v_0)} \rangle$}; \node (node_3) at (236.52bp,150.47bp) [draw,draw=none] {$\langle 1 {(1 v_0 \otimes F[a1+a2] v_0)} + q^{-1} {(F[a1+a2] v_0 \otimes 1 v_0)} \rangle$}; \node (node_4) at (144.52bp,79.224bp) [draw,draw=none] {$\langle 1 {(F[a1] v_0 \otimes F[a1+a2] v_0)} + q^{-1} {(F[a1+a2] v_0 \otimes F[a1] v_0)} \rangle$}; \node (node_5) at (144.52bp,8.3018bp) [draw,draw=none] {$\langle 1 {(F[a1+a2] v_0 \otimes F[a1+a2] v_0)} \rangle$}; \draw [blue,->] (node_0) ..controls (144.52bp,274.4bp) and (144.52bp,255.54bp) .. (node_1); \definecolor{strokecol}{rgb}{0.0,0.0,0.0}; \pgfsetstrokecolor{strokecol} \draw (153.02bp,257.33bp) node {$1$}; \draw [blue,->] (node_1) ..controls (119.45bp,201.84bp) and (89.94bp,179.63bp) .. (node_2); \draw (118.02bp,186.09bp) node {$1$}; \draw [red,->] (node_1) ..controls (169.43bp,201.96bp) and (198.49bp,180.09bp) .. (node_3); \draw (209.02bp,186.09bp) node {$2$}; \draw [red,->] (node_2) ..controls (77.09bp,130.97bp) and (106.75bp,108.65bp) .. (node_4); \draw (118.02bp,114.85bp) node {$2$}; \draw [blue,->] (node_3) ..controls (211.6bp,130.71bp) and (182.55bp,108.85bp) .. (node_4); \draw (209.02bp,114.85bp) node {$1$}; \draw [red,->] (node_4) ..controls (144.52bp,60.535bp) and (144.52bp,41.477bp) .. (node_5); \draw (153.02bp,43.604bp) node {$2$}; % \end{tikzpicture} ********************************************************************** 1 item had failures: 1 of 6 in sage.algebras.quantum_groups.quantum_group_gap.QuantumGro upModule._latex_ [537 tests, 1 failure, 9.28 s] ---------------------------------------------------------------------- sage -t --long --warn-long 216.1 --random- seed=336915508420415526544989948662812522502 src/sage/algebras/quantum_groups/quantum_group_gap.py # 1 doctest failed ``` ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> <!-- If your change requires a documentation PR, please link it appropriately --> <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> <!-- Feel free to remove irrelevant items. --> - [x] The title is concise, informative, and self-explanatory. - [x] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [ ] I have updated the documentation accordingly. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on - #12345: short description why this is a dependency - #34567: ... --> <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> URL: #36149 Reported by: David Coudert Reviewer(s): Kwankyu Lee
2 parents 952696e + 25232ec commit 24de879

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sage/algebras/quantum_groups/quantum_group_gap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1579,7 +1579,7 @@ def _latex_(self):
15791579
sage: T = tensor([V,V])
15801580
sage: S = T.highest_weight_decomposition()[0]
15811581
sage: latex(S)
1582-
\begin{tikzpicture}
1582+
\begin{tikzpicture}...
15831583
...
15841584
\end{tikzpicture}
15851585
"""

0 commit comments

Comments
 (0)