summaryrefslogtreecommitdiffstats
path: root/tests/assemble.test
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-03-13 11:12:33 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-03-13 11:12:33 (GMT)
commit49b167a3881644c6aee6b73d87e4edd13a50ce29 (patch)
tree11420ba578fd34a689a9c3cfc8e0c0d542107c8c /tests/assemble.test
parent2ded4dcac55bd18c10ff2815a4dc742bf18f70a0 (diff)
parentf7550ff059c94a5139b1387ed8cf2e02072d743f (diff)
downloadtcl-49b167a3881644c6aee6b73d87e4edd13a50ce29.zip
tcl-49b167a3881644c6aee6b73d87e4edd13a50ce29.tar.gz
tcl-49b167a3881644c6aee6b73d87e4edd13a50ce29.tar.bz2
Merge 8.7
Diffstat (limited to 'tests/assemble.test')
-rw-r--r--tests/assemble.test80
1 files changed, 27 insertions, 53 deletions
diff --git a/tests/assemble.test b/tests/assemble.test
index 8c50500..d417d4b 100644
--- a/tests/assemble.test
+++ b/tests/assemble.test
@@ -1524,61 +1524,35 @@ test assemble-14.7 {incrArrayStkImm} {
# assemble-15 - listIndexImm
-test assemble-15.1 {listIndexImm - wrong # args} {
- -body {
- assemble {listIndexImm}
- }
- -returnCodes error
- -match glob
- -result {wrong # args*}
-}
-test assemble-15.2 {listIndexImm - wrong # args} {
- -body {
- assemble {listIndexImm too many}
- }
- -returnCodes error
- -match glob
- -result {wrong # args*}
-}
-test assemble-15.3 {listIndexImm - bad substitution} {
- -body {
- list [catch {assemble {listIndexImm $foo}} result] $result $::errorCode
- }
- -result {1 {assembly code may not contain substitutions} {TCL ASSEM NOSUBST}}
- -cleanup {unset result}
-}
-test assemble-15.4 {listIndexImm - invalid index} {
- -body {
- assemble {listIndexImm rubbish}
- }
- -returnCodes error
- -match glob
- -result {bad index "rubbish"*}
-}
-test assemble-15.5 {listIndexImm} {
- -body {
- assemble {push {a b c}; listIndexImm 2}
- }
- -result c
-}
-test assemble-15.6 {listIndexImm} {
- -body {
- assemble {push {a b c}; listIndexImm end-1}
- }
- -result b
-}
-test assemble-15.7 {listIndexImm} {
- -body {
- assemble {push {a b c}; listIndexImm end}
- }
- -result c
-}
-test assemble-15.8 {listIndexImm} {
+test assemble-15.1 {listIndexImm - wrong # args} -body {
+ assemble {listIndexImm}
+} -returnCodes error -match glob -result {wrong # args*}
+test assemble-15.2 {listIndexImm - wrong # args} -body {
+ assemble {listIndexImm too many}
+} -returnCodes error -match glob -result {wrong # args*}
+test assemble-15.3 {listIndexImm - bad substitution} -body {
+ list [catch {assemble {listIndexImm $foo}} result] $result $::errorCode
+} -cleanup {
+ unset result
+} -result {1 {assembly code may not contain substitutions} {TCL ASSEM NOSUBST}}
+test assemble-15.4 {listIndexImm - invalid index} -body {
+ assemble {listIndexImm rubbish}
+} -returnCodes error -match glob -result {bad index "rubbish"*}
+test assemble-15.5 {listIndexImm} -body {
+ assemble {push {a b c}; listIndexImm 2}
+} -result c
+test assemble-15.6 {listIndexImm} -body {
+ assemble {push {a b c}; listIndexImm end-1}
+} -result b
+test assemble-15.7 {listIndexImm} -body {
+ assemble {push {a b c}; listIndexImm end}
+} -result c
+test assemble-15.8 {listIndexImm} -body {
assemble {push {a b c}; listIndexImm end+2}
-} {}
-test assemble-15.9 {listIndexImm} {
+} -result {}
+test assemble-15.9 {listIndexImm} -body {
assemble {push {a b c}; listIndexImm -1-1}
-} {}
+} -result {}
# assemble-16 - invokeStk