-
-
Notifications
You must be signed in to change notification settings - Fork 516
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make modules doctests ready for random seeds #29978
Comments
comment:1
I have a partial fix. After that at least the following need fixes
|
Dependencies: #29962 |
Branch: public/29978 |
Commit: |
comment:5
Setting new milestone based on a cursory review of ticket status, priority, and last modification date. |
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
Author: Jonathan Kliem |
Changed keywords from none to random_seed, fuzz |
Reviewer: Markus Wageringel |
comment:8
The following test is not quite robust, but otherwise the changes look good to me.
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:11
Thanks. |
comment:12
Thank you. |
comment:13
Merge conflict |
comment:14
This is the merge conflict: diff --cc src/sage/modules/fg_pid/fgp_module.py
index 935d0ab5c0,9349f2fd42..0000000000
--- a/src/sage/modules/fg_pid/fgp_module.py
+++ b/src/sage/modules/fg_pid/fgp_module.py
@@@ -1698,8 -1698,13 +1698,18 @@@ class FGP_Module_class(Module)
sage: V = span([[1/2,1,1],[3/2,2,1],[0,0,1]],ZZ); W = V.span([2*V.0+4*V.1, 9*V.0+12*V.1, 4*V.2])
sage: Q = V/W
++<<<<<<< HEAD
+ sage: Q.random_element()
+ (1, 5)
++=======
+ sage: Q.random_element().parent() is Q
+ True
+ sage: Q.cardinality()
+ 48
+ sage: S = set()
+ sage: while len(S) < 48:
+ ....: S.add(Q.random_element())
++>>>>>>> 7fbdf5d2d9b177bfa812427dcc83931e83c62be4
"""
return self(self._V.random_element(*args, **kwds)) |
comment:15
This should do it. Can't test it at the moment, as the new release breaks my New commits:
|
Changed branch from public/29978 to public/29978-reb |
comment:16
Ok, I pip installed |
Changed branch from public/29978-reb to |
This ticket makes
pass for different values
n
than just0
.Depends on #29962
Component: doctest framework
Keywords: random_seed, fuzz
Author: Jonathan Kliem
Branch/Commit:
6799dc0
Reviewer: Markus Wageringel
Issue created by migration from https://trac.sagemath.org/ticket/29978
The text was updated successfully, but these errors were encountered: