Closed linas closed 4 years ago
Merging, because this block successful unit test for opencog/atomspace#2685
See #94 to track this change.
It's not a bug, the empty VariableList
is here to tell to consider the variables as constants.
Wait, actually that's correct! Essentially cause is_constant
has been fixed.
The changes in opencog/atomspace#2685 alters how the utility
is_constant()
works, which is used byunify/Unify.cc
which is used byAndBIT::expand()
which alters the unit test results.The new
is_constant()
is working correctly, however, it is possible thatAndBIT::expand()
is broken or incorrect ... Theis_constant()
is called with an empty variable list, and so indeed, the entire clause is constant. But it does contain a variable, so maybe it was not supposed to be? All the other clauses contain this variable, too, so this seems very suspicious.