From 22e1a035640e9183f31e2b31b7e9936a06068294 Mon Sep 17 00:00:00 2001 From: anicusan Date: Sat, 23 Nov 2024 22:51:38 +0000 Subject: [PATCH] checking type consistency works --- test/runtests.jl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/runtests.jl b/test/runtests.jl index b0215f1..0f20c1b 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -773,7 +773,10 @@ end BVH(bvs, BBox{Float64}, UInt32, 0.0) BVH(bvs, BBox{Float64}, UInt32, 0.5) BVH(bvs, BBox{Float64}, UInt32, 1.0) - BVH(bvs, BBox{Float64}, UInt32, 3, bvh) + BVH(bvs, BSphere{Float64}, UInt32, 3, bvh) + + # Type mismatch between cache (BSphere) and nodes (BBox) + @test_throws ArgumentError BVH(bvs, BBox{Float64}, UInt32, 1, bvh) traverse(bvh, 3) traverse(bvh, 3, traversal)