Skip to content

Commit

Permalink
export xor symbols, add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbyrne committed Nov 14, 2016
1 parent 7b2a9e2 commit e8e2ba6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Compat.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1683,6 +1683,7 @@ end
if !isdefined(Base, :xor)
const xor = $
const = xor
export xor,
end

end # module
3 changes: 3 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1509,3 +1509,6 @@ for T in types
x = @compat Nullable{Array{T}}()
@test_throws UndefRefError unsafe_get(x)
end

@test xor(1,5) == 4
@test 1 5 == 4

0 comments on commit e8e2ba6

Please sign in to comment.