Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
chriselrod committed Aug 21, 2021
1 parent ac6443f commit 5fe3874
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ using Test

@testset "BitTwiddlingConvenienceFunctions.jl" begin

@test all(i -> HostCPUFeatures.intlog2(1 << i) == i, 0:(Int == Int64 ? 53 : 30))
@test all(i -> HostCPUFeatures.nextpow2(i) == i, 0:2)
@test all(i -> intlog2(1 << i) == i, 0:(Int == Int64 ? 53 : 30))
@test all(i -> nextpow2(i) == i, 0:2)
for j in 1:10
l, u = (1<<j)+1, 1<<(j+1)
@test all(i -> HostCPUFeatures.nextpow2(i) == u, l:u)
@test all(i -> nextpow2(i) == u, l:u)
end

end

2 comments on commit 5fe3874

@chriselrod
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/43275

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.1.0 -m "<description of version>" 5fe3874a35c67c322593a6e1e2c53cede40e78e4
git push origin v0.1.0

Please sign in to comment.