Index: tests/submethods.test =================================================================== diff -u -r23b10a2c736cf33731b0d7b0381314ddec44f2d6 -r236b6dfeb5bc9a7fa81e596f9f5d0bb7dfa6ea9e --- tests/submethods.test (.../submethods.test) (revision 23b10a2c736cf33731b0d7b0381314ddec44f2d6) +++ tests/submethods.test (.../submethods.test) (revision 236b6dfeb5bc9a7fa81e596f9f5d0bb7dfa6ea9e) @@ -4,7 +4,17 @@ ::nx::configure defaultMethodCallProtection false -nx::test configure -count 100 +# +# test, whether error message from a submethod contains method path +# +nx::test case info-errors { + ? {::nx::Object info subclass a b c} \ + {invalid argument 'b', maybe too many arguments; should be "::nx::Object info subclass ?-closure? ?-dependent? ?/pattern/?"} + ? {::nx::Object info object mixin classes a b c} \ + {invalid argument 'b', maybe too many arguments; should be "::nx::Object info object mixin classes ?-guards? ?/pattern/?"} +} + +nx::test configure -count 10 nx::test case submethods { #Object method unknown {} {} Object create o1