SWI-Prolog Did You Know Did you know? SWI-Prolog has a unit test framework Search Documentation:
Grammar rule remainder//1