-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
test elementwise leftshift on BigInt by vector of ints #22524
Conversation
@@ -222,3 +222,5 @@ for T in [Base.BitInteger_types..., BigInt], | |||
U in [Base.BitInteger_types..., BigInt] | |||
@test typeof(rand(U(0):U(127)) % T) === T | |||
end | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# issue #13832
? :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
ae0ecba
to
e8e1c7b
Compare
test/int.jl
Outdated
@@ -222,3 +222,6 @@ for T in [Base.BitInteger_types..., BigInt], | |||
U in [Base.BitInteger_types..., BigInt] | |||
@test typeof(rand(U(0):U(127)) % T) === T | |||
end | |||
|
|||
# issue #13832 | |||
@test (BigInt(1) .<< [1:70;])[end] == 1180591620717411303424 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not test also that the array is of type BigInt
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
e8e1c7b
to
0908e5e
Compare
(cherry picked from commit 65784d7)
(cherry picked from commit 65784d7)
(cherry picked from commit 65784d7)
Closes #13832