diff options
author | sebres <sebres@users.sourceforge.net> | 2022-07-29 10:46:27 (GMT) |
---|---|---|
committer | sebres <sebres@users.sourceforge.net> | 2022-07-29 10:46:27 (GMT) |
commit | 13c23e76277ca29f8f7d8db582816d407ac02a6c (patch) | |
tree | 9dfbec069176a37acbba86b4f027b7b146b5ddde /tests/apply.test | |
parent | b2135d370a27336a752322824529602ac754a330 (diff) | |
parent | 333f084b63b2fabca453da486b7879e1b6b6cf51 (diff) | |
download | tcl-13c23e76277ca29f8f7d8db582816d407ac02a6c.zip tcl-13c23e76277ca29f8f7d8db582816d407ac02a6c.tar.gz tcl-13c23e76277ca29f8f7d8db582816d407ac02a6c.tar.bz2 |
merge 8.6 (apply SF fix)
Diffstat (limited to 'tests/apply.test')
-rw-r--r-- | tests/apply.test | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/apply.test b/tests/apply.test index e2be172..a5f1f8f 100644 --- a/tests/apply.test +++ b/tests/apply.test @@ -16,12 +16,16 @@ if {"::tcltest" ni [namespace children]} { package require tcltest 2.5 namespace import -force ::tcltest::* } +::tcltest::loadTestedCommands +catch [list package require -exact tcl::test [info patchlevel]] if {[info commands ::apply] eq {}} { return } testConstraint memory [llength [info commands memory]] +testConstraint applylambda [llength [info commands testapplylambda]] + # Tests for wrong number of arguments @@ -306,6 +310,13 @@ test apply-9.3 {leaking internal rep} -setup { unset -nocomplain end i x tmp leakedBytes } -result 0 +# Tests for specific bugs +test apply-10.1 {Test for precompiled bytecode body} -constraints { + applylambda +} -body { + testapplylambda +} -result 42 + # Tests for the avoidance of recompilation # cleanup |