Skip to content

Commit

Permalink
Add test for new inner constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
brenhinkeller committed Feb 4, 2022
1 parent 97035cf commit de1b042
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,11 @@ using Test
store!(pointer(x), 1)
@test load(pointer(x)) === 1 === load(pointer(y))
end

# Test construction with existing data
s = (1,2,3,4,5)
@test MemoryBuffer(s).data === s
end

using ThreadingUtilities
include(joinpath(pkgdir(ThreadingUtilities), "test", "runtests.jl"))

0 comments on commit de1b042

Please sign in to comment.