aboutsummaryrefslogtreecommitdiff
path: root/tests/tailcall.test
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2010-10-30 15:21:21 +1000
committerSteve Bennett <steveb@workware.net.au>2010-11-22 13:27:14 +1000
commit192056900583884bc1f07f371df6478d856ada3b (patch)
tree540618a3e81d8d9e14261e267edb912f5b73710a /tests/tailcall.test
parentd98489727fe31fa217d237b36901211adc35282d (diff)
downloadjimtcl-192056900583884bc1f07f371df6478d856ada3b.zip
jimtcl-192056900583884bc1f07f371df6478d856ada3b.tar.gz
jimtcl-192056900583884bc1f07f371df6478d856ada3b.tar.bz2
Overhaul unit test framework
Much closer to tcltest now, including constraints. Try to get all appropriate tests running under both Jim and Tcl. Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'tests/tailcall.test')
-rw-r--r--tests/tailcall.test6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/tailcall.test b/tests/tailcall.test
index eb097e5..7ee18c6 100644
--- a/tests/tailcall.test
+++ b/tests/tailcall.test
@@ -1,4 +1,6 @@
-source testing.tcl
+source [file dirname [info script]]/testing.tcl
+needs constraint jim
+needs cmd tailcall
test tailcall-1.1 {Basic tailcall} {
# Demo -- a tail-recursive factorial function
@@ -48,3 +50,5 @@ test tailcall-1.5 {interaction of uplevel and tailcall} {
}
a b
} {c c}
+
+testreport