01-errors.t (rakudo-2020.08.2) | : | 01-errors.t (rakudo-2020.09) | ||
---|---|---|---|---|
skipping to change at line 225 | skipping to change at line 225 | |||
throws-like q| class RT123078_1 { method foo { self.bar }; method !bar { }; method baz { } }; RT123078_1.new.foo |, | throws-like q| class RT123078_1 { method foo { self.bar }; method !bar { }; method baz { } }; RT123078_1.new.foo |, | |||
X::Method::NotFound, | X::Method::NotFound, | |||
message => all(/<<"No such method 'bar'" \W/, /<<'RT123078_1'>>/, /\W '! bar'>>/, /<<'baz'>>/), | message => all(/<<"No such method 'bar'" \W/, /<<'RT123078_1'>>/, /\W '! bar'>>/, /<<'baz'>>/), | |||
'a private method of the same name as the public missing method is sugge sted'; | 'a private method of the same name as the public missing method is sugge sted'; | |||
throws-like q| class RT123078_2 { method foo { self!bar }; method bar { }; m ethod baz { } } |, | throws-like q| class RT123078_2 { method foo { self!bar }; method bar { }; m ethod baz { } } |, | |||
X::Method::NotFound, | X::Method::NotFound, | |||
message => all(/<<"No such private method '!bar'" \W/, /<<'RT123078_2'>> /, /<<'bar'>>/, /<<'baz'>>/), | message => all(/<<"No such private method '!bar'" \W/, /<<'RT123078_2'>> /, /<<'bar'>>/, /<<'baz'>>/), | |||
'a public method of the same name as the missing private method is sugge sted'; | 'a public method of the same name as the missing private method is sugge sted'; | |||
throws-like q| class RT123078_3 { method !bar { }; method baz { } }; RT12307 8_3.new.bar |, | throws-like q| class RT123078_3 { method !bar { }; method baz { } }; RT12307 8_3.new.bar |, | |||
X::Method::NotFound, | X::Method::NotFound, | |||
message => all(/<<"No such method 'bar'" \W/, /<<'RT123078_3'>>/, /\s+ D | message => all(/<<"No such method 'bar'" \W/, /<<'RT123078_3'>>/, /\s+ D | |||
id \s+ you \s+ mean \s+ "'baz'"/), | id \s+ you \s+ mean/), | |||
suggestions => <Bag baz>, | ||||
'a private method of the same name as the public missing method is not s uggested for out-of-class call'; | 'a private method of the same name as the public missing method is not s uggested for out-of-class call'; | |||
throws-like q| <a a b>.uniq |, | throws-like q| <a a b>.uniq |, | |||
X::Method::NotFound, | X::Method::NotFound, | |||
message => all(/<<"No such method 'uniq'" \W/, /<<'unique'>>/), | message => all(/<<"No such method 'uniq'" \W/, /<<'unique'>>/), | |||
'potentially common misspelling gives the right suggestion'; | 'potentially common misspelling gives the right suggestion'; | |||
throws-like q| ‘foo’.starts-wizh(‘f’) |, | throws-like q| ‘foo’.starts-wizh(‘f’) |, | |||
X::Method::NotFound, | X::Method::NotFound, | |||
message => all(/<<"No such method 'starts-wizh'" \W/, /<<'starts-with'>> /), | message => all(/<<"No such method 'starts-wizh'" \W/, /<<'starts-with'>> /), | |||
'longer method names are suggested also'; | 'longer method names are suggested also'; | |||
} | } | |||
End of changes. 1 change blocks. | ||||
2 lines changed or deleted | 3 lines changed or added |