From: Michael Orlitzky Date: Fri, 10 Apr 2026 16:25:58 +0000 (-0400) Subject: mjo/clan/normal_decomposition.py: add extra guards in a test X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=c0070c13daae044967ccf004f598aac01aab9861;p=sage.d.git mjo/clan/normal_decomposition.py: add extra guards in a test Now that x.elt(i,j) will crash on invalid arguments, we check that i >= j before calling it. --- diff --git a/mjo/clan/normal_decomposition.py b/mjo/clan/normal_decomposition.py index 5c60cd6..72c567c 100644 --- a/mjo/clan/normal_decomposition.py +++ b/mjo/clan/normal_decomposition.py @@ -37,7 +37,8 @@ class NormalDecomposition(Clan): True sage: j != k or z.elt(i,l) == z True - sage: j != l or (z.elt(i,k) == z) or (z.elt(k,i) == z) + sage: ( j != l or (k <= i and z.elt(i,k) == z) + ....: or (i <= k and z.elt(k,i) == z) ) True If we start with a normal decomposition of a clan of rank ``r``