From: Michael Orlitzky Date: Sun, 10 Nov 2019 14:10:43 +0000 (-0500) Subject: eja: don't wait for a non-nilpotent element in trivial algebras. X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=c4b8297b7a7b3b3817b025c9241674f790aa0876;p=sage.d.git eja: don't wait for a non-nilpotent element in trivial algebras. --- diff --git a/mjo/eja/eja_element.py b/mjo/eja/eja_element.py index 5b8bc1e..3491b69 100644 --- a/mjo/eja/eja_element.py +++ b/mjo/eja/eja_element.py @@ -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()