drt24 / gnuprologjava

GNU Prolog for Java
8 stars 5 forks source link

CompoundTerm.toCollection() always returns false #17

Closed thetrime closed 8 years ago

thetrime commented 8 years ago

bea6823e refactored this to be significantly more efficient, but unfortunately changed the final check to see that the list item was listAtom, and not emptyListAtom. This means the only list that will correctly parse is of the form [a,b,c|'.']

The list itself is formed correctly, but tests should take the return value into account