Skip to content

Commit

Permalink
contains_variable_shaped_hole -> contains_nonuniform_hole
Browse files Browse the repository at this point in the history
  • Loading branch information
ReubenJ committed Apr 15, 2024
1 parent fe4b4f5 commit fe6ab46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/solver/fixed_shaped_solver/fixed_shaped_solver.jl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ end
FixedShapedSolver(grammar::AbstractGrammar, fixed_shaped_tree::AbstractRuleNode)
"""
function FixedShapedSolver(grammar::AbstractGrammar, fixed_shaped_tree::AbstractRuleNode; with_statistics=false, derivation_heuristic=nothing)
@assert !contains_variable_shaped_hole(fixed_shaped_tree) "$(fixed_shaped_tree) contains non-uniform holes"
@assert !contains_nonuniform_hole(fixed_shaped_tree) "$(fixed_shaped_tree) contains non-uniform holes"
sm = StateManager()
tree = StateHole(sm, fixed_shaped_tree)
unvisited_branches = Stack{Vector{Branch}}()
Expand Down
2 changes: 1 addition & 1 deletion test/test_lessthanorequal.jl
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ using HerbCore, HerbGrammar
new_state!(solver, tree)

@test HerbConstraints.make_less_than_or_equal!(solver, left, right) isa HerbConstraints.LessThanOrEqualSuccess
@test contains_variable_shaped_hole(get_tree(solver)) == true
@test contains_nonuniform_hole(get_tree(solver)) == true
@test number_of_holes(get_tree(solver)) == 1
end
end

0 comments on commit fe6ab46

Please sign in to comment.