Skip to content

Commit

Permalink
Fix test for 32 bit
Browse files Browse the repository at this point in the history
The test added in #8893 shouldn't use typemax(Int), but typemax(Int64)
  • Loading branch information
ivarne committed Nov 4, 2014
1 parent 3c7b6db commit 49083be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/reduce.jl
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ end
@test prod(fz) === 120.0

@test prod(1:big(16)) == big(20922789888000)
@test prod(big(typemax(Int)):big(typemax(Int))+16) == BigInt("25300281663413827620486300433089141956148633919452440329174083959168114253708467653081909888307573358090001734956158476311046124934597861626299416732205795533726326734482449215730132757595422510465791525610410023802664753402501982524443370512346073948799084936298007821432734720004795146875180123558814648586972474376192000")
@test prod(big(typemax(Int64)):big(typemax(Int64))+16) == BigInt("25300281663413827620486300433089141956148633919452440329174083959168114253708467653081909888307573358090001734956158476311046124934597861626299416732205795533726326734482449215730132757595422510465791525610410023802664753402501982524443370512346073948799084936298007821432734720004795146875180123558814648586972474376192000")

# check type-stability
prod2(itr) = invoke(prod, (Any,), itr)
Expand Down

0 comments on commit 49083be

Please sign in to comment.