Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tweak tests for error message for wrong arity #777

Merged
merged 1 commit into from Jan 3, 2022

Conversation

usev6
Copy link
Contributor

@usev6 usev6 commented Dec 19, 2021

The tests are still very specific wrt the error message, but they now
allow to mention the method, for instance:

$ ./rakudo -e 'my $foo = ObjAt.new(:val("test")); $foo ~~ /"foo"/;'
Too few positionals passed to 'new'; expected 2 arguments but got 1
in block at -e line 1

The old messages that talked about parameters have been removed back in
2015 with MoarVM/MoarVM@288410e40d and
rakudo/rakudo@3301ec44b7.

The tests are still very specific wrt the error message, but they now
allow to mention the method, for instance:

  $ ./rakudo -e 'my $foo = ObjAt.new(:val("test")); $foo ~~ /"foo"/;'
  Too few positionals passed to 'new'; expected 2 arguments but got 1
    in block <unit> at -e line 1

The old messages that talked about parameters have been removed back in
2015 with MoarVM/MoarVM@288410e40d and
rakudo/rakudo@3301ec44b7.
@lizmat lizmat merged commit f11f198 into Raku:master Jan 3, 2022
@usev6 usev6 deleted the errors_wrong_arity branch January 8, 2022 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants