home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / lifeos2.zip / LIFE-1.02 / TESTS / IN / DEBUG.IN < prev    next >
Text File  |  1996-06-04  |  520b  |  67 lines

  1. import("../Tools/debug")?
  2.  
  3. debug(p,goal)?
  4.  
  5. p(X),nl,write("X=",X),nl,fail ?
  6.  
  7.  
  8. debug(app,clause,false)?
  9.  
  10.  
  11. app([1,2,3],R,[1,2,3,4,5,6])?
  12. ;
  13.  
  14.  
  15.  
  16.  
  17.  
  18. debug(app,goal,true)?
  19.  
  20. app([1,2,3],R,[1,2,3,4,5,6])?
  21. ;
  22.  
  23.  
  24.  
  25.  
  26. debug(append)?
  27.  
  28.  
  29. A=append([a,b,c],[d,e,f])?
  30.  
  31.  
  32.  
  33. A=append(G,H)?
  34. G=[a,b|C]?
  35. H=[hello]?
  36. C=[d,e]?
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43. debug(append,goal,true)?
  44.  
  45.  
  46. A=append([a,b,c],[d,e,f])?
  47.  
  48.  
  49.  
  50. A=append(G,H)?
  51. G=[a,b|C]?
  52. H=[hello]?
  53. C=[d,e]?
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60. undebug(append)?
  61. A=append([a,b,c],[d,e,f])?
  62.  
  63.  
  64.  
  65.  
  66. debug(f,{clause;goal;fail}),A=f(merci_arnaud,Y),Y={a;b;c},fail?
  67.