From de1b04249e5690273f2409085579868158c9b3c4 Mon Sep 17 00:00:00 2001 From: "C.Brenhin Keller" Date: Fri, 4 Feb 2022 16:09:19 -0500 Subject: [PATCH] Add test for new inner constructor --- test/runtests.jl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/runtests.jl b/test/runtests.jl index 7fc1516..6854a6c 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -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")) -