summaryrefslogtreecommitdiff
path: root/web/funnelAC/tests/pr04.fw
diff options
context:
space:
mode:
Diffstat (limited to 'web/funnelAC/tests/pr04.fw')
-rw-r--r--web/funnelAC/tests/pr04.fw33
1 files changed, 33 insertions, 0 deletions
diff --git a/web/funnelAC/tests/pr04.fw b/web/funnelAC/tests/pr04.fw
new file mode 100644
index 0000000000..670d3ea6a5
--- /dev/null
+++ b/web/funnelAC/tests/pr04.fw
@@ -0,0 +1,33 @@
+PR04: Test the definition of ordinary macros.
+
+1. Test an ordinary macro definition.
+@$@<Ordinary@>@{The text of ordinary@}
+
+2. Test an ordinary definition using a quickname.
+@$@#|@{The text of ordinary@}
+
+3. Test a name that includes EOL.
+@$@<This name is illegal because
+it crosses a lion@>@{And people who cross lions tend to get eaten.@}
+@A@<Error Recovery Point@>
+
+4. Test the minimum length name (the empty name).
+@$@<@>@{The empty macro name is quite legal in FunnelWeb.@}
+
+5. Test a name at the maximum name length limit (80).
+ONly the second of the two macros should generate an error.
+@p maximum_input_line_length = 100
+@$@<12345678901234567890123456789012345678901234567890123456789012345678901234567890@>@{@}
+@$@<123456789012345678901234567890123456789012345678901234567890123456789012345678901@>@{@}
+@A@<Error Recovery Point@>
+
+6. Test names with all legal characters. There should be no errors.
+@$@< !"#$%'()*+,-./0123456789:;<=>?@>@{@}
+@$@<ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`@>@{@}
+@$@<abcdefghijklmnopqrstuvwxyz{|}~@>@{@}
+
+7. Test a name that has inserted text sequences.
+
+@$@<@^D(065)@@@>==@{@}
+
+