]> gitweb.michael.orlitzky.com - sage.d.git/commitdiff
eja: don't wait for a non-nilpotent element in trivial algebras.
authorMichael Orlitzky <michael@orlitzky.com>
Sun, 10 Nov 2019 14:10:43 +0000 (09:10 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Sun, 10 Nov 2019 14:10:43 +0000 (09:10 -0500)
mjo/eja/eja_element.py

index 5b8bc1e98a58ef03234e8a966a75eefd859c461c..3491b69230b0d430fdfa936b3399ebfc88259988 100644 (file)
@@ -1270,10 +1270,13 @@ class FiniteDimensionalEuclideanJordanAlgebraElement(IndexedFreeModuleElement):
 
             sage: from mjo.eja.eja_algebra import random_eja
 
-        TESTS::
+        TESTS:
+
+        Ensure that we can find an idempotent in a non-trivial algebra
+        where there are non-nilpotent elements::
 
             sage: set_random_seed()
-            sage: J = random_eja()
+            sage: J = random_eja(nontrivial=True)
             sage: x = J.random_element()
             sage: while x.is_nilpotent():
             ....:     x = J.random_element()