Skip to content

Commit d3f6037

Browse files
committed
Update
1 parent f833fda commit d3f6037

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/FileFormats/NL/read.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ function test_parse_expr()
6464
# (* x1 (* 2 (* x4 x2)))
6565
seekstart(io)
6666
x = MOI.VariableIndex.(1:4)
67-
@test NL._parse_expr(io, model) == :(*($(x[1]), *(2, *($(x[4]), $(x[2])))))
67+
@test NL._parse_expr(io, model) ==
68+
:(*($(x[1]), *(2.0, *($(x[4]), $(x[2])))))
6869
@test eof(io)
6970
return
7071
end
@@ -76,7 +77,7 @@ function test_parse_expr_nary()
7677
seekstart(io)
7778
x = MOI.VariableIndex.(1:4)
7879
@test NL._parse_expr(io, model) ==
79-
:(+($(x[1])^2, $(x[3])^2, $(x[4])^2, $(x[2])^2))
80+
:(+($(x[1])^2.0, $(x[3])^2.0, $(x[4])^2.0, $(x[2])^2.0))
8081
@test eof(io)
8182
return
8283
end

0 commit comments

Comments
 (0)