Skip to content

Commit

Permalink
test xor
Browse files Browse the repository at this point in the history
  • Loading branch information
mofeing committed Nov 19, 2024
1 parent 4189cac commit 48d1add
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion test/ops.jl
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,15 @@ end
# @test diag(Array(x)) ≈ @jit f6(x)
# end

@testset "xor" begin end
@testset "xor" begin
a = ConcreteRArray([false, false, true, true])
b = ConcreteRArray([false, true, false, true])
@test [false, true, true, false] @jit Ops.xor(a, b)

a = ConcreteRArray([1, 2, 3, 4])
b = ConcreteRArray([5, 6, -7, -8])
@test Array(a) .⊻ Array(b) == @jit Ops.xor(a, b)
end

@testset "acos" begin end

Expand Down

0 comments on commit 48d1add

Please sign in to comment.