summaryrefslogtreecommitdiffstats
path: root/tests/uplevel.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/uplevel.test')
-rw-r--r--tests/uplevel.test19
1 files changed, 18 insertions, 1 deletions
diff --git a/tests/uplevel.test b/tests/uplevel.test
index b197587..4ee6a34 100644
--- a/tests/uplevel.test
+++ b/tests/uplevel.test
@@ -12,7 +12,7 @@
# this file, and for a DISCLAIMER OF ALL WARRANTIES.
if {"::tcltest" ni [namespace children]} {
- package require tcltest
+ package require tcltest 2.5
namespace import -force ::tcltest::*
}
@@ -304,7 +304,24 @@ test uplevel-7.3 {var access, LVT in upper level} -setup {
rename foo {}
rename moo {}
} -result {3 3 3}
+
+
+test uplevel-8.0 {
+ string representation isn't generated when there is only one argument
+} -body {
+ set res {}
+ set script [list lindex 5]
+ lappend res [apply {script {
+ uplevel $script
+ }} $script]
+ lappend res [string match {value is a list *no string representation*} [
+ ::tcl::unsupported::representation $script]]
+} -cleanup {
+ unset script
+ unset res
+} -result {5 1}
+
# cleanup
::tcltest::cleanupTests
return