summaryrefslogtreecommitdiffstats
path: root/tests/source.test
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2013-09-25 16:39:26 (GMT)
committerdgp <dgp@users.sourceforge.net>2013-09-25 16:39:26 (GMT)
commite929b912222f8a79390ef58c8d8d6db71c1cbd4c (patch)
treee436e3fd2864a6d0115277332deac382ceed8146 /tests/source.test
parent96fec1a88ca35bc13a18864d41f5e7cf56b4c58c (diff)
downloadtcl-e929b912222f8a79390ef58c8d8d6db71c1cbd4c.zip
tcl-e929b912222f8a79390ef58c8d8d6db71c1cbd4c.tar.gz
tcl-e929b912222f8a79390ef58c8d8d6db71c1cbd4c.tar.bz2
Test demonstrating need for "adjust" manipulation in TclSubstTokens.
Diffstat (limited to 'tests/source.test')
-rw-r--r--tests/source.test10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/source.test b/tests/source.test
index 641838c..dc3c2d8 100644
--- a/tests/source.test
+++ b/tests/source.test
@@ -187,6 +187,16 @@ test source-3.5 {return with special code etc.} -setup {
invoked from within
"source $sourcefile"} {a b c}}
+test source-4.1 {continuation line parsing} -setup {
+ set sourcefile [makeFile [string map {CL \\\n} {
+ format %s "[dict get [info frame 0] type]:CL[dict get [info frame 0] line]CL[dict get [info frame 0] line]CL[dict get [info frame 0] line]"
+ }] source.file]
+} -body {
+ source $sourcefile
+} -cleanup {
+ removeFile source.file
+} -result {source: 3 4 5}
+
test source-6.1 {source is binary ok} -setup {
# Note [makeFile] writes in the system encoding.
# [source] defaults to reading in the system encoding.