SWI-Prolog Did You Know Did you know? SWI-Prolog has a unit test framework Search Documentation:
Predicate py_iter/3