Skip to content

Commit 66f30ee

Browse files
committed
Fix CPP tests
1 parent 5178559 commit 66f30ee

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/ClosestPointTests.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,11 @@ function run_case(T,degree)
3434
coords = fill_cpp_data(vals,Int32.(collect(partition)),xmin,xmax,degree)
3535
@test maximum(u.(coords)) < 1.0e-4
3636

37-
pts = reduce(vcat,grid[1:10])
37+
np = 10
38+
pts = reduce(vcat,grid[1:np])
3839
coords = fill_cpp_data(vals,Int32.(collect(partition)),xmin,xmax,pts,degree)
40+
coords = reshape(coords,(length(xmin),np))
41+
coords = typeof(xmin)[eachcol(coords)...]
3942
@test maximum(u.(coords)) < 1.0e-4
4043

4144
end

0 commit comments

Comments
 (0)