Skip to content

Commit 163f519

Browse files
committed
Fix format
1 parent cf2a22b commit 163f519

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

test/FileFormats/NL/read.jl

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1072,17 +1072,17 @@ function test_try_scalar_affine_function()
10721072
compare(x, y) = (@show(x, y, typeof(x), typeof(y)); false)
10731073
x = MOI.VariableIndex(1)
10741074
for (expr, ret) in Any[
1075-
:(2.0) => 2.0,
1076-
:($x) => x,
1077-
:(2.0 * $x) => 2.0 * x,
1078-
:($x * 2.0) => 2.0 * x,
1079-
:(($x + $x)) => 2.0 * x,
1080-
:(2.0 * ($x + $x)) => 4.0 * x,
1081-
:(($x + $x) * 2.0) => 4.0 * x,
1082-
:(($x + $x) + 2.0) => 2.0 * x + 2.0,
1083-
:(sin($x) * ($x + $x)) => nothing,
1084-
:(($x + $x) * sin($x)) => nothing,
1085-
:($x * $x) => nothing,
1075+
:(2.0)=>2.0,
1076+
:($x)=>x,
1077+
:(2.0*$x)=>2.0*x,
1078+
:($x*2.0)=>2.0*x,
1079+
:(($x+$x))=>2.0*x,
1080+
:(2.0*($x+$x))=>4.0*x,
1081+
:(($x+$x)*2.0)=>4.0*x,
1082+
:(($x+x)+2.0)=>2.0*x+2.0,
1083+
:(sin($x)*($x+$x))=>nothing,
1084+
:(($x+$x)*sin($x))=>nothing,
1085+
:($x*$x)=>nothing,
10861086

10871087
]
10881088
@test compare(MOI.FileFormats.NL._try_scalar_affine_function(expr), ret)

0 commit comments

Comments
 (0)