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

doctest fix for infinities break the hash contract #19928

Closed
rwst opened this issue Jan 21, 2016 · 21 comments
Closed

doctest fix for infinities break the hash contract #19928

rwst opened this issue Jan 21, 2016 · 21 comments

Comments

@rwst
Copy link
Contributor

rwst commented Jan 21, 2016

sage: hash(-oo)
-9223372036854775808
sage: hash(SR(-oo))
1390175631
sage: hash(oo)
9223372036854775807
sage: hash(SR(oo))
1577573780
sage: hash(unsigned_infinity)
9223372036854775806
sage: hash(SR(unsigned_infinity))
2904791665

Fixed in pynac/pynac#126

Component: symbolics

Author: Ralf Stephan

Branch/Commit: 9eb6d88

Reviewer: Travis Scrimshaw

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

@rwst rwst added this to the sage-7.1 milestone Jan 21, 2016
@rwst
Copy link
Contributor Author

rwst commented Jan 21, 2016

Dependencies: #19927

@rwst
Copy link
Contributor Author

rwst commented Jan 21, 2016

comment:1

#19927 has to be fixed in Sage before Pynac can copy hash values from there.

@rwst

This comment has been minimized.

@rwst

This comment has been minimized.

@rwst

This comment has been minimized.

@rwst

This comment has been minimized.

@rwst
Copy link
Contributor Author

rwst commented Jan 23, 2016

Changed dependencies from #19927 to none

@rwst
Copy link
Contributor Author

rwst commented Jan 23, 2016

Upstream: Fixed upstream, in a later stable release.

@rwst rwst changed the title infinities break the hash contract doctest fix for infinities break the hash contract Jan 23, 2016
@rwst
Copy link
Contributor Author

rwst commented Feb 5, 2016

comment:6

It's fixed now and just needs to be doctested.

@rwst
Copy link
Contributor Author

rwst commented Feb 5, 2016

Changed upstream from Fixed upstream, in a later stable release. to none

@rwst rwst modified the milestones: sage-7.1, sage-7.2 Feb 5, 2016
@rwst
Copy link
Contributor Author

rwst commented Aug 3, 2016

@rwst
Copy link
Contributor Author

rwst commented Aug 3, 2016

Author: Ralf Stephan

@rwst
Copy link
Contributor Author

rwst commented Aug 3, 2016

New commits:

62cd61119928: doctest fix for infinities break the hash contract

@rwst
Copy link
Contributor Author

rwst commented Aug 3, 2016

Commit: 62cd611

@rwst rwst modified the milestones: sage-7.2, sage-7.4 Aug 3, 2016
@tscrim
Copy link
Collaborator

tscrim commented Aug 4, 2016

comment:9

This is more towards bikeshedding, but I don't quite understand why you switched the tests to use assert instead of letting the doctest framework do its usual work. I feel that the previous tests were (marginally) more clear.

@jdemeyer
Copy link
Contributor

comment:10

Replying to @tscrim:

This is more towards bikeshedding, but I don't quite understand why you switched the tests to use assert instead of letting the doctest framework do its usual work. I feel that the previous tests were (marginally) more clear.

+1

@rwst
Copy link
Contributor Author

rwst commented Nov 6, 2016

@rwst
Copy link
Contributor Author

rwst commented Nov 6, 2016

New commits:

9eb6d8819928: doctest fix for infinities break the hash contract

@rwst
Copy link
Contributor Author

rwst commented Nov 6, 2016

Changed commit from 62cd611 to 9eb6d88

@tscrim
Copy link
Collaborator

tscrim commented Nov 6, 2016

Reviewer: Travis Scrimshaw

@vbraun
Copy link
Member

vbraun commented Nov 11, 2016

Changed branch from u/rws/19928 to 9eb6d88

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

4 participants