summaryrefslogtreecommitdiffstats
path: root/tests/assemble.test
diff options
context:
space:
mode:
authorpspjuth <peter.spjuth@gmail.com>2018-10-22 21:15:00 (GMT)
committerpspjuth <peter.spjuth@gmail.com>2018-10-22 21:15:00 (GMT)
commit394e22ef5d4e279dbb1e8d2d6616c84e70f5032f (patch)
treef19213e6131770eefbadb228e8ccf4761f82556f /tests/assemble.test
parent5b1614f31a3c2c510c726089b6ca499cfb792e72 (diff)
downloadtcl-394e22ef5d4e279dbb1e8d2d6616c84e70f5032f.zip
tcl-394e22ef5d4e279dbb1e8d2d6616c84e70f5032f.tar.gz
tcl-394e22ef5d4e279dbb1e8d2d6616c84e70f5032f.tar.bz2
Updated tests to exercise new feature.
Diffstat (limited to 'tests/assemble.test')
-rw-r--r--tests/assemble.test11
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/assemble.test b/tests/assemble.test
index d7c47a9..bea780a 100644
--- a/tests/assemble.test
+++ b/tests/assemble.test
@@ -852,10 +852,11 @@ test assemble-8.5 {bad context} {
-body {
namespace eval assem {
set x 1
- list [catch {assemble {load x}} result opts] $result [dict get $opts -errorcode]
+ assemble {load x}
}
}
- -result {1 {cannot use this instruction to create a variable in a non-proc context} {TCL ASSEM LVT}}
+ -result {cannot use this instruction to create a variable in a non-proc context}
+ -errorCode {TCL ASSEM LVT}
-cleanup {namespace delete assem}
}
test assemble-8.6 {load1} {
@@ -1110,10 +1111,10 @@ test assemble-9.6 {concat} {
}
test assemble-9.7 {concat} {
-body {
- list [catch {assemble {concat 0}} result] $result $::errorCode
+ assemble {concat 0}
}
- -result {1 {operand must be positive} {TCL ASSEM POSITIVE}}
- -cleanup {unset result}
+ -result {operand must be positive}
+ -errorCode {TCL ASSEM POSITIVE}
}
# assemble-10 -- eval and expr