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

  1. Generate.Web
  2. ============
  3. Some of the FunnelWeb tests require input files that contain control
  4. characters, improperly terminated lines, and other special constructs
  5. designed to test FunnelWeb's capacity to deal with anything that could
  6. arise in an input text file.
  7.  
  8. Unfortunately, by their very nature, these constructs tend to be vulnerable
  9. to file transfer programs and other utilities (e.g. FIXEOLS!) that take it
  10. upon themselves to "fix up" various problems with text files.
  11.  
  12. The solution adopted here is to totally avoid the problem by using FunnelWeb
  13. itself to generate these awkward test files. The following output file
  14. macro definitions achieve this.
  15.  
  16. This FunnelWeb file should be fed into FunnelWeb before testing begins.
  17.  
  18. @!------------------------------------------------------------------------------
  19.  
  20. @O@<sc06.fw@>==@{@-
  21. SC06: Test FunnelWeb on a file whose last line is not terminated properly
  22. with an end of line marker.
  23.  
  24. Here is the improper termination!---->@}
  25.  
  26. @!------------------------------------------------------------------------------
  27.  
  28. @O@<sc08.fw@>==@{@-
  29. SC08: Detection of trailing spaces.
  30.  
  31. This line has zero  trailing spaces |
  32. This line has one   trailing space  | @+@-
  33. This line has two   trailing spaces |  @+@-
  34. This line has three trailing spaces |   @+@-
  35. @}
  36.  
  37. @!------------------------------------------------------------------------------
  38.  
  39. @O@<sc09.fw@>==@{@-
  40. SC09: Detection of control characters.
  41.  
  42. SC09.1 Test that control characters are detected and replaced by "?".
  43. SC09.2 Test non printable that has a mnemonic.
  44.  
  45. There is a tab between these two bars |@^D(009)| which should come out as "?".
  46. The above error message should contain the mnemonic "HT".
  47.  
  48. SC09.3 Test non printable that has no mnemonic.
  49.  
  50. There is a non-mnemonic control character between these bars |@^D(234)|.
  51. @}
  52.  
  53. @!------------------------------------------------------------------------------
  54.  
  55. @O@<sc13e.fwi@>==@{@-
  56. This is the include file for test SC13e. The test is to see how FunnelWeb
  57. copes with an include file that has an improperly terminated last line.
  58.  
  59. Here is the improper termination!---->@}
  60.  
  61. @!------------------------------------------------------------------------------
  62.