Skip to content

Commit

Permalink
fix unit test error
Browse files Browse the repository at this point in the history
nnhjy committed Nov 21, 2024
1 parent b5a15c7 commit 8ef032f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/update_model.jl
Original file line number Diff line number Diff line change
@@ -322,9 +322,9 @@ function _test_expression_bounds()
fix_p = Call(fix_pval, (t=t,), (:fix_p, (;)))
lb_p = Call(lb_pval, (t=t,), (:lb_p, (;)))
ub_p = Call(ub_pval, (t=t,), (:ub_p, (;)))
lb_con = set_expr_bound(expr, >=, lb_p)
ub_con = set_expr_bound(expr, <=, ub_p)
fix_con = set_expr_bound(expr, ==, fix_p)
lb_con = SpineInterface.set_expr_bound(expr, >=, lb_p)
ub_con = SpineInterface.set_expr_bound(expr, <=, ub_p)
fix_con = SpineInterface.set_expr_bound(expr, ==, fix_p)
@test _is_constraint_equal(constraint_object(lb_con), @build_constraint(expr >= -1))
@test _is_constraint_equal(constraint_object(ub_con), @build_constraint(expr <= 100))
@test _is_constraint_equal(constraint_object(fix_con), @build_constraint(expr == 20))

0 comments on commit 8ef032f

Please sign in to comment.