Skip to content

Commit

Permalink
test conditional call to smarsa_BirthdaySpacings
Browse files Browse the repository at this point in the history
Test conditional call to smarsa_BirthdaySpacings which avoids error on Windows passing 2^31 to Clong which is defined as Int32
  • Loading branch information
GregPlowman authored Jan 16, 2025
1 parent 6f20d38 commit e8245a1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ pval = 0.001
@testset "smarsa" begin
@testset "BirthdaySpacings" begin
@test RNGTest.smarsa_BirthdaySpacings(f, 1, 5000000, 0, 1073741824, 2, 1) > pval

# Issue28: smarsa_BirthdaySpacing called in bigcrushJulia
if typemax(Clong) < 2^31 # On Windows Clong is defined as Int32
@test RNGTest.smarsa_BirthdaySpacings(f, 250, 4*10^6, 0, 2^30, 2, 1) > pval
else
@test RNGTest.smarsa_BirthdaySpacings(f, 100, 10^7, 0, 2^31, 2, 1) > pval
end
end

@testset "MatrixRank" begin
Expand Down

0 comments on commit e8245a1

Please sign in to comment.