Skip to content

Commit 899b325

Browse files
committed
check that all values are defined
1 parent 79bb953 commit 899b325

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/subs.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ function evalmap{T}(vars, x::Vector{T}, varorder::Vector{PolyVar})
88
vals[j] = x[i]
99
end
1010
end
11+
@assert all(i -> isdefined(vals, i), 1:length(vals))
1112
vals
1213
end
1314

0 commit comments

Comments
 (0)