Skip to content

Commit 7beed5f

Browse files
🤖 Format .jl files (#474)
Co-authored-by: tmigot <tmigot@users.noreply.github.com>
1 parent 6ebae68 commit 7beed5f

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

test/nlp/meta.jl

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,23 @@ end
44

55
@testset "Meta copier." begin
66
nlp = SimpleNLPModel()
7-
7+
88
# Check simple copy
99
meta = NLPModelMeta(nlp.meta)
1010
for field in fieldnames(typeof(nlp.meta))
1111
@test getfield(nlp.meta, field) == getfield(meta, field)
1212
end
1313

14-
modif = Dict(:nnzh => 1, :x0 => [2.0; 2.0; 0.0], :nvar => 3, :lvar => zeros(3), :uvar => [1.0; 1.0; 0.0])
14+
modif = Dict(
15+
:nnzh => 1,
16+
:x0 => [2.0; 2.0; 0.0],
17+
:nvar => 3,
18+
:lvar => zeros(3),
19+
:uvar => [1.0; 1.0; 0.0],
20+
)
1521
meta = NLPModelMeta(nlp.meta; modif...)
16-
17-
for field in setdiff(fieldnames(typeof(nlp.meta)), union(keys(modif),[:ifix]))
22+
23+
for field in setdiff(fieldnames(typeof(nlp.meta)), union(keys(modif), [:ifix]))
1824
@test getfield(nlp.meta, field) == getfield(meta, field)
1925
end
2026
for field in keys(modif)

0 commit comments

Comments
 (0)