Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created September 22, 2018 22:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Whateverable/f4d2770a18d2a34573f4e402787623b8 to your computer and use it in GitHub Desktop.
Save Whateverable/f4d2770a18d2a34573f4e402787623b8 to your computer and use it in GitHub Desktop.
committable6
ef9872,HEAD use Test; throws-like 「my \foo = Callable but role :: { };」, X::Method::NotFound, :message{.so}
¦«ef9872»:
1..3
ok 1 - 'my \foo = Callable but role :: { };' died
ok 2 - right exception type (X::Method::NotFound)
Unexpected named argument 'all' passed
in block at /tmp/whateverable/rakudo-moar/ef9872de9e7153d13dc18def68128906cb77ad62/share/perl6/sources/C712FE6969F786C9380D643DF17E85D06868219E (Test) line 619
in block at /tmp/whateverable/rakudo-moar/ef9872de9e7153d13dc18def68128906cb77ad62/share/perl6/sources/C712FE6969F786C9380D643DF17E85D06868219E (Test) line 613
in sub subtest at /tmp/whateverable/rakudo-moar/ef9872de9e7153d13dc18def68128906cb77ad62/share/perl6/sources/C712FE6969F786C9380D643DF17E85D06868219E (Test) line 399
in sub throws-like at /tmp/whateverable/rakudo-moar/ef9872de9e7153d13dc18def68128906cb77ad62/share/perl6/sources/C712FE6969F786C9380D643DF17E85D06868219E (Test) line 635
in block <unit> at /tmp/FtJT6tTWCT line 1
# Looks like you planned 3 tests, but ran 2
«exit code = 255»
¦«HEAD(b22edce)»:
1..3
ok 1 - 'my \foo = Callable but role :: { };' died
ok 2 - right exception type (X::Method::NotFound)
ok 3 - .message matches -> ;; $_? is raw { \#`(Block|94626096554248) ... }
ok 1 - did we throws-like X::Method::NotFound?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment