Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
kwant
tinyarray
Commits
445c65bb
Commit
445c65bb
authored
Nov 22, 2021
by
Stefano Rivera
Browse files
2 NaNs are no longer expected to hash equal
parent
21707c07
Changes
1
Show whitespace changes
Inline
Side-by-side
test_tinyarray.py
View file @
445c65bb
...
...
@@ -323,7 +323,7 @@ def test_hash_equality():
int_bits
=
(
8
*
ta
.
dtype_size
[
int
])
-
1
# 8 bits per byte, minus 1 sign bit
maxint
=
2
**
(
int_bits
)
special
=
[
float
(
'nan'
),
float
(
'inf'
),
float
(
'-inf'
),
special
=
[
float
(
'inf'
),
float
(
'-inf'
),
0
,
-
1
,
-
1.0
,
-
1
+
0j
,
303
,
-
312424
,
-
0.3
,
1.7
,
0.4j
,
-
12.3j
,
1
-
12.3j
,
1.3
-
12.3j
,
(),
(
-
1
,),
(
2
,),
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment