Did you know? SWI-Prolog has a unit test frameworkSearch Documentation:
SWI-Prolog owl logoPredicate read_stream_to_codes/2