Last active
December 13, 2015 19:58
-
-
Save peczenyj/4966481 to your computer and use it in GitHub Desktop.
why my bb does no work?
This file contains hidden or 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
| 1..3 | |
| ok 1 - should be 1 | |
| not ok 2 - should be 2 | |
| # Failed test 'should be 2' | |
| # at untitled line 8. | |
| # got: undef | |
| # expected: '2' | |
| # Looks like you failed 1 test of 3. | |
| ok 3 - should be 3 |
This file contains hidden or 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::More tests => 3; | |
| $aa = 1; | |
| my $bb = 2; # HERE! | |
| local $cc = 3; | |
| is(${*aa}, 1, "should be 1"); | |
| is(${*bb}, 2, "should be 2"); | |
| is(${*cc}, 3, "should be 3"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment