]> gitweb.michael.orlitzky.com - dunshire.git/blobdiff - test/randomgen.py
Enable and fix doctests for the new randomgen module.
[dunshire.git] / test / randomgen.py
index ef1b19e569825625e134eeef84be3445f2f87b3c..6513440152d3e693618267d6b839faabaf8417f4 100644 (file)
@@ -200,9 +200,10 @@ def random_skew_symmetric_matrix(dims):
         >>> A.size
         (3, 3)
 
+        >>> from dunshire.options import ABS_TOL
         >>> from dunshire.matrices import norm
         >>> A = random_skew_symmetric_matrix(random_natural())
-        >>> norm(A + A.trans()) < options.ABS_TOL
+        >>> norm(A + A.trans()) < ABS_TOL
         True
 
     """
@@ -255,9 +256,12 @@ def random_lyapunov_like_icecream(dims):
         >>> L = random_lyapunov_like_icecream(3)
         >>> L.size
         (3, 3)
+
+        >>> from dunshire.options import ABS_TOL
+        >>> from dunshire.matrices import inner_product
         >>> x = matrix([1,1,0])
         >>> s = matrix([1,-1,0])
-        >>> abs(inner_product(L*x, s)) < options.ABS_TOL
+        >>> abs(inner_product(L*x, s)) < ABS_TOL
         True
 
     """