Created
September 16, 2017 18:58
Star
You must be signed in to star a gist
evalable6
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
| use Test; class Bar { method bar { die "a b c"; } }; throws-like { Bar.new().bar }, Exception, "test3", message => m:s/a b/; |
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
| (exit code 1) | |
| Use of uninitialized value of type Any in string context. | |
| Methods .^name, .perl, .gist, or .say can be used to stringify it to something meaningful. | |
| 1..3 | |
| ok 1 - code dies | |
| ok 2 - right exception type (Exception) | |
| not ok 3 - .message matches Nil | |
| not ok 1 - test3 | |
| in block <unit> at /tmp/_6MYUjieEZ line 1 | |
| # Failed test '.message matches Nil' | |
| # at SETTING::src/core/Any-iterable-methods.pm line 618 | |
| # Expected: Nil | |
| # Got: a b c | |
| # Looks like you failed 1 test of 3 | |
| # Failed test 'test3' | |
| # at /tmp/_6MYUjieEZ line 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment