aboutsummaryrefslogtreecommitdiff
path: root/tests/jim.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/jim.test')
-rw-r--r--tests/jim.test10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/jim.test b/tests/jim.test
index 8151712..16e56fa 100644
--- a/tests/jim.test
+++ b/tests/jim.test
@@ -3339,6 +3339,16 @@ test info-7.5 {info vars with temporary variables} {
}
t1
} {a}
+test info-8.1 {info script} {
+ file tail [info script]
+} {jim.test}
+test info-8.2 {info script - set} {
+ set save [info script]
+ list [info script abc] [info script] [file tail [info script $save]]
+} {abc abc jim.test}
+test info-8.3 {info script - usage} -body {
+ info script too many args
+} -returnCodes error -result {wrong # args: should be "info script ?filename?"}
################################################################################
# RANGE