Skip to content

Commit

Permalink
Added tests for fast BitIndices equality methods
Browse files Browse the repository at this point in the history
  • Loading branch information
brainandforce committed Sep 23, 2024
1 parent 3f6b234 commit b5d7df3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/indexing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ end
@test all(map(-, BitIndices{VGA(3)}()) .== (-).(BitIndices{VGA(3)}()))
@test Broadcast.BroadcastStyle(BitIndices) === Broadcast.Style{Tuple}()
@test Broadcast.BroadcastStyle(TransformedBitIndices) === Broadcast.Style{Tuple}()
# Efficient == methods
@test BitIndices(KVector{1,VGA(3)}) == BitIndices{VGA(3), KVector{1,VGA(3)}}()
@test BitIndices(KVector{1,VGA(3)}) == BitIndices{VGA(3), KVector{1,VGA(3),Int}}()
@test BitIndices(KVector{1,VGA(3)}) == BitIndices{VGA(3), KVector{1,VGA(3),Int,3}}()
end

@testset "Transformed BitIndices" begin
Expand Down

0 comments on commit b5d7df3

Please sign in to comment.