Created
November 8, 2018 12:55
-
-
Save Whateverable/af30b4003fd3ce14d9b3a77a9b70ffaa to your computer and use it in GitHub Desktop.
committable6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2018.10 use Test; throws-like q| class RT123078_2 { method foo { self!bar }; method bar { }; method baz { } } |, X::Method::NotFound, message => all(/<<"No such private method '!bar'" \W/, /<<'RT123078_2'>>/, /<<'bar'>>/, /<<'baz'>>/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
¦«2018.10»: | |
1..3 | |
ok 1 - ' class RT123078_2 { method foo { self!bar }; method bar { }; method baz { } } ' died | |
ok 2 - right exception type (X::Method::NotFound) | |
ok 3 - .message matches all(/<<"No such private method '!bar'" \W/, /<<'RT123078_2'>>/, /<<'bar'>>/, /<<'baz'>>/) | |
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