summaryrefslogtreecommitdiff
path: root/web/funnelAC/tests/generate.fw
blob: 6df5a6668328b28de815243fefd97848a42d8b95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
Generate.Web
============
Some of the FunnelWeb tests require input files that contain control
characters, improperly terminated lines, and other special constructs
designed to test FunnelWeb's capacity to deal with anything that could
arise in an input text file.

Unfortunately, by their very nature, these constructs tend to be vulnerable
to file transfer programs and other utilities (e.g. FIXEOLS!) that take it
upon themselves to "fix up" various problems with text files.

The solution adopted here is to totally avoid the problem by using FunnelWeb
itself to generate these awkward test files. The following output file
macro definitions achieve this.

This FunnelWeb file should be fed into FunnelWeb before testing begins.

@!------------------------------------------------------------------------------

@O@<sc06.fw@>==@{@-
SC06: Test FunnelWeb on a file whose last line is not terminated properly
with an end of line marker.

Here is the improper termination!---->@}

@!------------------------------------------------------------------------------

@O@<sc08.fw@>==@{@-
SC08: Detection of trailing spaces.

This line has zero  trailing spaces |
This line has one   trailing space  | @+@-
This line has two   trailing spaces |  @+@-
This line has three trailing spaces |   @+@-
@}

@!------------------------------------------------------------------------------

@O@<sc09.fw@>==@{@-
SC09: Detection of control characters.

SC09.1 Test that control characters are detected and replaced by "?".
SC09.2 Test non printable that has a mnemonic.

There is a tab between these two bars |@^D(009)| which should come out as "?".
The above error message should contain the mnemonic "HT".

SC09.3 Test non printable that has no mnemonic.

There is a non-mnemonic control character between these bars |@^D(234)|.
@}

@!------------------------------------------------------------------------------

@O@<sc13e.fwi@>==@{@-
This is the include file for test SC13e. The test is to see how FunnelWeb
copes with an include file that has an improperly terminated last line.

Here is the improper termination!---->@}

@!------------------------------------------------------------------------------