Skip to content

Commit c706098

Browse files
committed
Update
1 parent 56230f4 commit c706098

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/FileFormats/MOF/MOF.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,9 @@ function test_HS071()
113113
MOI.set(model, MOI.NLPBlock(), HS071(x))
114114
MOI.set(model, MOI.ObjectiveSense(), MOI.MIN_SENSE)
115115
MOI.write_to_file(model, TEST_MOF_FILE)
116-
@test replace(read(TEST_MOF_FILE, String), '\r' => "") ==
117-
replace(read(joinpath(@__DIR__, "nlp.mof.json"), String), '\r' => "")
116+
target = read(joinpath(@__DIR__, "nlp.mof.json"), String)
117+
target = replace(, '\r' => "", ' ' => "", '\n' => "")
118+
@test read(TEST_MOF_FILE, String) == target
118119
_validate(TEST_MOF_FILE)
119120
return
120121
end

0 commit comments

Comments
 (0)