Skip to content

Commit 8cd5a1c

Browse files
committed
alternative to ;;;
1 parent 8b0126c commit 8cd5a1c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

test/interp.jl

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,12 @@ end
3939

4040
@test pdf(k2d, [0.5, 0.1]) pdf(k2d, [0.5; 0.1]) pdf(k2d, 0.5, 0.1) pdf(ik2d, 0.5, 0.1)
4141
@test pdf(k2d, [0.5 1.; 0.1 1.]) [pdf(ik2d, 0.5, 0.1), pdf(ik2d, 1., 1.)]
42-
@test pdf(k2d, [0.5; 1. ;;; 0.1; 1.]) [pdf(ik2d, 0.5, 1.) pdf(ik2d, 0.1, 1.)]
42+
@static if VERSION >= v"1.1"
43+
@test pdf(k2d, [0.5; 1. ;;; 0.1; 1.]) [pdf(ik2d, 0.5, 1.) pdf(ik2d, 0.1, 1.)]
44+
else
45+
M = zeros(2, 1, 2)
46+
M[:,1,1] .= [0.5, 1]
47+
M[:,1,2] .= [0.1, 1]
48+
@test pdf(k2d, M) [pdf(ik2d, 0.5, 1.) pdf(ik2d, 0.1, 1.)]
49+
end
4350
end

0 commit comments

Comments
 (0)