summaryrefslogtreecommitdiff
path: root/test/th1-tcl7.txt
diff options
context:
space:
mode:
authorcashmere <cashmere@autistici.org>2026-09-04 09:05:24 +0200
committercashmere <cashmere@autistici.org>2026-09-04 09:05:24 +0200
commit4f49b16079b27d7ce633619e4cddfdf2bffbc952 (patch)
treec296c1e7f3c3e2f6859c6d3a1b1b208779b89679 /test/th1-tcl7.txt
downloadrelic-4f49b16079b27d7ce633619e4cddfdf2bffbc952.tar.gz
initial commitHEADmaster
Diffstat (limited to 'test/th1-tcl7.txt')
-rw-r--r--test/th1-tcl7.txt19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/th1-tcl7.txt b/test/th1-tcl7.txt
new file mode 100644
index 0000000..69a1a77
--- /dev/null
+++ b/test/th1-tcl7.txt
@@ -0,0 +1,19 @@
+<th1>
+ #
+ # This is a "TH1 fragment" used to test the Tcl integration features of TH1.
+ # The corresponding test file executes this file using the test-th-render
+ # Fossil command.
+ #
+ proc doOut {msg} {puts $msg; puts \n}
+
+ #
+ # BUGBUG: Attempting to divide by zero will crash TH1 with the error:
+ # "child killed: floating-point exception"
+ #
+ # doOut [tclEval th1Expr 2/0]
+
+ #
+ # NOTE: For now, just cause an expression syntax error.
+ #
+ doOut [tclEval th1Expr 2**0]
+</th1>