| 1 |
PR04: Test the definition of ordinary macros. |
| 2 |
|
| 3 |
1. Test an ordinary macro definition. |
| 4 |
@$@<Ordinary@>@{The text of ordinary@} |
| 5 |
|
| 6 |
2. Test an ordinary definition using a quickname. |
| 7 |
@$@#|@{The text of ordinary@} |
| 8 |
|
| 9 |
3. Test a name that includes EOL. |
| 10 |
@$@<This name is illegal because |
| 11 |
it crosses a lion@>@{And people who cross lions tend to get eaten.@} |
| 12 |
@A@<Error Recovery Point@> |
| 13 |
|
| 14 |
4. Test the minimum length name (the empty name). |
| 15 |
@$@<@>@{The empty macro name is quite legal in FunnelWeb.@} |
| 16 |
|
| 17 |
5. Test a name at the maximum name length limit (80). |
| 18 |
ONly the second of the two macros should generate an error. |
| 19 |
@p maximum_input_line_length = 100 |
| 20 |
@$@<12345678901234567890123456789012345678901234567890123456789012345678901234567890@>@{@} |
| 21 |
@$@<123456789012345678901234567890123456789012345678901234567890123456789012345678901@>@{@} |
| 22 |
@A@<Error Recovery Point@> |
| 23 |
|
| 24 |
6. Test names with all legal characters. There should be no errors. |
| 25 |
@$@< !"#$%'()*+,-./0123456789:;<=>?@>@{@} |
| 26 |
@$@<ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`@>@{@} |
| 27 |
@$@<abcdefghijklmnopqrstuvwxyz{|}~@>@{@} |
| 28 |
|
| 29 |
7. Test a name that has inserted text sequences. |
| 30 |
|
| 31 |
@$@<@^D(065)@@@>==@{@} |
| 32 |
|
| 33 |
|