]> gitweb.michael.orlitzky.com - sage.d.git/commitdiff
eja: fix a randomly failing (in dimension zero) test.
authorMichael Orlitzky <michael@orlitzky.com>
Thu, 25 Feb 2021 23:52:11 +0000 (18:52 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Thu, 25 Feb 2021 23:52:11 +0000 (18:52 -0500)
mjo/eja/eja_algebra.py

index 3b64ddd7374d8931f80fdefe4b0fb1734b682995..d012dd86c09a0596933059d1a43d7aca55e5d9a2 100644 (file)
@@ -601,18 +601,13 @@ class FiniteDimensionalEJA(CombinatorialFreeModule):
 
         TESTS:
 
-        Ensure that we can convert any element of the two non-matrix
-        simple algebras (whose matrix representations are columns)
-        back and forth faithfully::
+        Ensure that we can convert any element back and forth
+        faithfully between its matrix and algebra representations::
 
             sage: set_random_seed()
-            sage: J = HadamardEJA.random_instance()
-            sage: x = J.random_element()
-            sage: J(x.to_vector().column()) == x
-            True
-            sage: J = JordanSpinEJA.random_instance()
+            sage: J = random_eja()
             sage: x = J.random_element()
-            sage: J(x.to_vector().column()) == x
+            sage: J(x.to_matrix()) == x
             True
 
         We cannot coerce elements between algebras just because their
@@ -628,7 +623,6 @@ class FiniteDimensionalEJA(CombinatorialFreeModule):
             Traceback (most recent call last):
             ...
             ValueError: not an element of this algebra
-
         """
         msg = "not an element of this algebra"
         if elt in self.base_ring():