home *** CD-ROM | disk | FTP | other *** search
/ Mega Top 1 / os2_top1.zip / os2_top1 / APPS / TEKST / FUNNEL_S / TESTS / SC16.FW < prev    next >
Text File  |  1992-05-27  |  1KB  |  63 lines

  1. SC16: Test <special>^ sequence.
  2.  
  3. 1. Test that all base characters work (in both cases).
  4.    These should provoke no errors.
  5.  
  6.    @^B(00000000)   @^b(00000000)
  7.    @^O(000)   @^o(000)
  8.    @^Q(000)   @^q(000)
  9.    @^D(000)   @^d(000)
  10.    @^H(00)    @^h(00)
  11.    @^X(00)    @^x(00)
  12.  
  13. 2. Test that some other base characters generate an error.
  14.  
  15.    @^u(0)
  16.    @^y
  17.    @^#
  18.    @^(
  19.  
  20. 3. Test that an error is generated if parenthesis is missing.
  21.  
  22.    @^D34)
  23.  
  24. 4. Test legal digits in each base.
  25.  
  26.    @^B(00001111)
  27.    @^O(012)  @^O(034) @^O(056) @^O(077)
  28.    @^D(012)  @^D(034) @^D(056) @^D(078) @^D(099)
  29.    @^H(01) @^H(23) @^H(45) @^H(67)
  30.    @^H(89) @^H(AB) @^X(CD) @^X(EF)  @^x(af)
  31.  
  32. 5. Test illegal digits in each base.
  33.  
  34.    @^B(00000002)
  35.    @^O(008)
  36.    @^D(00A)
  37.    @^H(0G)
  38.  
  39. 6. Test what happens if there are the wrong number of digits
  40.    (too few, too many).
  41.  
  42.    @^B(1)
  43.    @^O(1)
  44.    @^D(1)
  45.    @^H(1)
  46.  
  47.    @^B(000000001)
  48.    @^O(0004)
  49.    @^D(0001)
  50.    @^H(005)
  51.  
  52. 7. Test that an error is generated for a missing closing parenthesis.
  53.  
  54.   @^B(00000000
  55.   @^D(045(
  56.  
  57. 8. Test what happens in number is out of the range [0,255].
  58.  
  59.   @^D(255)
  60.   @^D(256)
  61.   @^D(999)
  62.  
  63.