Skip to content

Commit fac54bf

Browse files
committed
Update
1 parent 5a3ad9a commit fac54bf

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/Test/Test.jl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,15 @@ function Base.isapprox(x, y, config::Config{T}) where {T}
351351
return Base.isapprox(x, y; atol = config.atol, rtol = config.rtol)
352352
end
353353

354+
function Base.isapprox(
355+
x::AbstractVector{T},
356+
y::AbstractVector{T},
357+
config::Config{T},
358+
) where {T}
359+
return length(x) == length(y) &&
360+
all(isapprox(xi, yi, config) for (xi, yi) in zip(x, y))
361+
end
362+
354363
"""
355364
_supports(config::Config, attribute::MOI.AnyAttribute)
356365

0 commit comments

Comments
 (0)