I have a prolog script and runs without any problems on Windows with swi-prolog,
but when I run the script on Linux there is a error related to test suite:
ERROR: /home/test_suite.pl:12:
catch/3: Undefined procedure: begin_tests/1
Where
:- begin_tests(reason).
indicates the beginning of test set in file test_suite.pl.
If I run the script excluding test_suite.pl file then the script runs without any problems.
Have no idea why Unix does not understand begin (begin_tests/1) and end (end_tests/1) of the test?
Thanks.
Do you have the testing library installed on your pc? plunit does not come bundled with swi-prolog. Try the instructions here- http://onek.posterous.com/how-to-build-plunit
If that is installed, did you include the testing library?