Index: tests/info-method.tcl =================================================================== diff -u -r8f05e6491f0ce991406f502b7c8c6f960f4c2140 -r0054815a6f649a06f4e3a9f5516df56c05e99098 --- tests/info-method.tcl (.../info-method.tcl) (revision 8f05e6491f0ce991406f502b7c8c6f960f4c2140) +++ tests/info-method.tcl (.../info-method.tcl) (revision 0054815a6f649a06f4e3a9f5516df56c05e99098) @@ -203,6 +203,7 @@ :method "foo a" {} {return a} :method "foo b" {x:int y:upper} {return b} } + nx::Object create o2 nx::Class create C { :method "bar a" {} {return a} @@ -217,9 +218,15 @@ # query definition on subcommand with handle ? {o info method definition "::o::foo b"} {::o method {foo b} {x:int y:upper} {return b}} - # query definition on handle of ensemble object - ? {o info method definition "::o::foo::b"} {::o::foo method b {x:int y:upper} {return b}} + # query definition on subcommand with handle + ? {o info method definition "::o::foo b"} {::o method {foo b} {x:int y:upper} {return b}} + # query definition on subcommand with handle called on different object + ? {o2 info method definition "::o::foo b"} {::o method {foo b} {x:int y:upper} {return b}} + + # query definition on handle of ensemble object called on different object + ? {o2 info method definition "::o::foo::b"} {::o::foo method b {x:int y:upper} {return b}} + # query definition on subcommand of class ? {::nx::Object info method definition "info lookup methods"} \ {::nx::Object alias {info lookup methods} ::nsf::cmd::ObjectInfo::lookupmethods} @@ -228,7 +235,7 @@ ? {o info method definition "::nsf::classes::nx::Object::info lookup methods"} \ {::nx::Object alias {info lookup methods} ::nsf::cmd::ObjectInfo::lookupmethods} - # query definition on ensemble object of class + # query definition on handle of ensemble object of class ? {o info method definition "::nx::Object::slot::__info::lookup::methods"} \ {::nx::Object::slot::__info::lookup alias methods ::nsf::cmd::ObjectInfo::lookupmethods}