From: David S. W. <dw...@us...> - 2009-12-01 20:55:34
|
Update of /cvsroot/xsb/xsbtests/prolog_tests In directory sfp-cvsdas-3.v30.ch3.sourceforge.com:/tmp/cvs-serv4661 Modified Files: test_importas.P test_importas_old Log Message: Add back the import-as test to import a predicate defined by foreign code. Index: test_importas.P =================================================================== RCS file: /cvsroot/xsb/xsbtests/prolog_tests/test_importas.P,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- test_importas.P 28 Nov 2009 15:57:17 -0000 1.1 +++ test_importas.P 1 Dec 2009 20:55:19 -0000 1.2 @@ -1,12 +1,12 @@ :- export mymember/2,test/0. -%:- export my_min_ed_dis/3. +:- export my_min_ed_dis/3. :- import member/2 from basics as mymember/2. -%:- import min_ed_dis/3 from xeddis as my_min_ed_dis/3. +:- import min_ed_dis/3 from xeddis as my_min_ed_dis/3. test:- mymember(X,[a,b,c]),writeln(mymember(X)),fail. -%test:- my_min_ed_dis(cat,hat,X),writeln(my_med(X)),fail. +test:- my_min_ed_dis(cat,hat,X),writeln(my_med(X)),fail. test. \ No newline at end of file Index: test_importas_old =================================================================== RCS file: /cvsroot/xsb/xsbtests/prolog_tests/test_importas_old,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- test_importas_old 28 Nov 2009 15:57:17 -0000 1.1 +++ test_importas_old 1 Dec 2009 20:55:19 -0000 1.2 @@ -1,3 +1,4 @@ +my_med(1) mymember(a) mymember(b) mymember(c) |