Skip to content
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

adding doctests to arith.py #6529

Closed
sagetrac-mhampton mannequin opened this issue Jul 14, 2009 · 10 comments
Closed

adding doctests to arith.py #6529

sagetrac-mhampton mannequin opened this issue Jul 14, 2009 · 10 comments

Comments

@sagetrac-mhampton
Copy link
Mannequin

sagetrac-mhampton mannequin commented Jul 14, 2009

arith.py currently has quite a few doctests missing. I (Marshall Hampton) am planning on bringing this up to 100% coverage soon.

Component: basic arithmetic

Author: Marshall Hampton, David Loeffler

Reviewer: David Loeffler, Minh Van Nguyen

Merged: sage-4.1.1.alpha0

Issue created by migration from https://trac.sagemath.org/ticket/6529

@sagetrac-mhampton
Copy link
Mannequin Author

sagetrac-mhampton mannequin commented Jul 14, 2009

Brings arith.py coverage to 100%; includes functions from #6509

@sagetrac-mhampton
Copy link
Mannequin Author

sagetrac-mhampton mannequin commented Jul 14, 2009

comment:1

Attachment: trac_6529_arith_doctests.patch.gz

Attached patch has functions from ticket #6509 in it as well.

I deleted the optional argument "k=1" from Euler_Phi, since it didn't seem to be there for any reason.

@sagetrac-mhampton
Copy link
Mannequin Author

sagetrac-mhampton mannequin commented Jul 14, 2009

Reviewer: wstein, craigcitro

@sagetrac-mhampton sagetrac-mhampton mannequin added t: enhancement and removed t: bug labels Jul 14, 2009
@sagetrac-mhampton sagetrac-mhampton mannequin added this to the sage-4.1.1 milestone Jul 14, 2009
@sagetrac-mhampton sagetrac-mhampton mannequin removed the t: feature label Jul 14, 2009
@loefflerd
Copy link
Mannequin

loefflerd mannequin commented Jul 16, 2009

Attachment: trac_6529_reviewer.patch.gz

@loefflerd
Copy link
Mannequin

loefflerd mannequin commented Jul 16, 2009

comment:2

Good work: patch applies fine, and all doctests pass. But I noticed that several docstrings are mis-formatted, including the one for the new four_squares function. Then I had an attack of enthusiasm and decided to clean all that up. Hence the second patch above.

I'm happy with mhampton's changes; so if mhampton (or anyone someone else) could take a quick look at the second patch, then we can call this a positive review.

David

@loefflerd
Copy link
Mannequin

loefflerd mannequin commented Jul 16, 2009

Author: Marshall Hampton, David Loeffler

@loefflerd
Copy link
Mannequin

loefflerd mannequin commented Jul 16, 2009

Changed reviewer from wstein, craigcitro to David Loeffler

@loefflerd loefflerd mannequin changed the title adding doctests to arith.py [with second patch] adding doctests to arith.py Jul 16, 2009
@sagetrac-mvngu
Copy link
Mannequin

sagetrac-mvngu mannequin commented Jul 18, 2009

Merged: sage-4.1.1.alpha0

@sagetrac-mvngu
Copy link
Mannequin

sagetrac-mvngu mannequin commented Jul 18, 2009

Changed reviewer from David Loeffler to David Loeffler, Minh Van Nguyen

@sagetrac-mvngu sagetrac-mvngu mannequin removed the s: needs review label Jul 18, 2009
@sagetrac-mvngu sagetrac-mvngu mannequin closed this as completed Jul 18, 2009
@sagetrac-mvngu sagetrac-mvngu mannequin changed the title [with second patch] adding doctests to arith.py adding doctests to arith.py Jul 18, 2009
@sagetrac-mvngu sagetrac-mvngu mannequin reopened this Jul 18, 2009
@sagetrac-mhampton
Copy link
Mannequin Author

sagetrac-mhampton mannequin commented Jul 19, 2009

comment:4

Thanks David, that was a lot of cleanup work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

0 participants