Skip to content

Commit 68e0c7c

Browse files
authored
[FileFormats.CBF] tidy test/FileFormats/CBF/CBF.jl (#2486)
1 parent cab197c commit 68e0c7c

File tree

2 files changed

+194
-199
lines changed

2 files changed

+194
-199
lines changed

src/functions.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -914,6 +914,11 @@ function Base.isapprox(
914914
)
915915
end
916916

917+
# This method is used by CBF in testing.
918+
function Base.isapprox(f::VectorOfVariables, g::VectorAffineFunction; kwargs...)
919+
return isapprox(convert(typeof(g), f), g; kwargs...)
920+
end
921+
917922
_is_approx(x, y; kwargs...) = isapprox(x, y; kwargs...)
918923

919924
function _is_approx(x::AbstractArray, y::AbstractArray; kwargs...)

0 commit comments

Comments
 (0)