home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / self / contrib.lha / contrib / 491 / aa / tests.self < prev    next >
Encoding:
Text File  |  1993-05-23  |  578 b   |  40 lines

  1. " simple test cases "
  2. "
  3. *
  4. * These are tests for the polynomial representations. 
  5. * tests.self,v 1.3 1993/05/23 23:16:47 richards Exp
  6. *
  7. * tests.self,v
  8. * Revision 1.3  1993/05/23  23:16:47  richards
  9. * Now test4.self
  10. *
  11. # Revision 1.2  1992/08/19  02:00:39  richards
  12. # Added a description.
  13. #
  14. # Revision 1.1  1992/07/05  22:11:03  richards
  15. # Initial revision
  16. #
  17. *
  18. *
  19. *
  20. "
  21.  
  22. _AddSlotsIfAbsent: (| foo. bar. baz. hunk. junk. |)
  23.  
  24. foo: aa scalar create: 'A'
  25. bar: aa scalar create: 'B'
  26. junk: foo + bar
  27. junk printLine          " outputs A+B "
  28.  
  29.  
  30. hunk: foo * bar + junk
  31. hunk printLine
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.