Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
bokner committed Dec 16, 2024
1 parent db1f544 commit e2766c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions lib/solver/domain/bitvector_domain.ex
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,7 @@ defmodule CPSolver.BitVectorDomain do
end

def to_list(
{{:bit_vector, ref} = bit_vector, offset} = domain,
value_mapper_fun \\ &Function.identity/1
domain, value_mapper_fun \\ &Function.identity/1
) do
reduce(domain, value_mapper_fun, &MapSet.union/2, MapSet.new())
end
Expand Down
2 changes: 1 addition & 1 deletion test/constraints/less_or_equal_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ defmodule CPSolverTest.Constraint.LessOrEqual do
assert Enum.all?(res.solutions, fn [x_val, _] -> x_val <= upper_bound end)
end

test "Less" do
test "Less (inconsistent)" do
x = Variable.new(1)
y = Variable.new(1)
less_constraint = Less.new(x, y)
Expand Down

0 comments on commit e2766c6

Please sign in to comment.