Skip to content

Commit 4b22162

Browse files
committed
avoid implicit assignment to global variable
1 parent 43ee3fa commit 4b22162

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

test/bivariate.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,6 @@ for X in ([0.0], [0.0,0.0], [0.0,0.5], [-0.5:0.1:0.5;])
6161
end
6262
end
6363

64-
k1 = kde([0.0 0.0; 1.0 1.0], (r,r), bandwidth=(1,1), weights=[0,1])
65-
k2 = kde([1.0 1.0], (r,r), bandwidth=(1,1))
66-
@test k1.density k2.density
64+
k11 = kde([0.0 0.0; 1.0 1.0], (r,r), bandwidth=(1,1), weights=[0,1])
65+
k12 = kde([1.0 1.0], (r,r), bandwidth=(1,1))
66+
@test k11.density k12.density

test/univariate.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,6 @@ for X in ([0.0], [0.0,0.0], [0.0,0.5], [-0.5:0.1:0.5;])
6363
end
6464
end
6565

66-
k1 = kde([0.0, 1.], r, bandwidth=1, weights=[0,1])
67-
k2 = kde([1.], r, bandwidth=1)
68-
@test k1.density k2.density
66+
k11 = kde([0.0, 1.], r, bandwidth=1, weights=[0,1])
67+
k12 = kde([1.], r, bandwidth=1)
68+
@test k11.density k12.density

0 commit comments

Comments
 (0)