diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-10-24 13:59:13 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-10-24 13:59:13 (GMT) |
commit | ef7ea2c390bb660ff9bbfff56cede9a48bec8cf5 (patch) | |
tree | 7356841eba4767aab8b64215407b7c0b18d9ccbf /tests/oo.test | |
parent | 5470f1329925b63a1ac3def74b82b9b3a4851f0e (diff) | |
parent | d5f679a3f608fabb7954ae203eff8f37b2e1747b (diff) | |
download | tcl-ef7ea2c390bb660ff9bbfff56cede9a48bec8cf5.zip tcl-ef7ea2c390bb660ff9bbfff56cede9a48bec8cf5.tar.gz tcl-ef7ea2c390bb660ff9bbfff56cede9a48bec8cf5.tar.bz2 |
merge trunk
Diffstat (limited to 'tests/oo.test')
-rw-r--r-- | tests/oo.test | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/oo.test b/tests/oo.test index b538b60..54c4b75 100644 --- a/tests/oo.test +++ b/tests/oo.test @@ -2048,6 +2048,17 @@ test oo-15.14 {OO: object cloning with target NS} -setup { } -cleanup { Cls destroy } -result {{} ::dupens::test-15.14} +test oo-15.15 {method cloning must ensure that there is a string representation of bodies} -setup { + oo::class create cls +} -body { + cls create foo + oo::objdefine foo { + method m1 {} [string map {a b} {return hello}] + } + [oo::copy foo] m1 +} -cleanup { + cls destroy +} -result hello test oo-16.1 {OO: object introspection} -body { info object |