Created
January 1, 2011 20:41
-
-
Save kapace/761993 to your computer and use it in GitHub Desktop.
Set_pmc?
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
.sub 'test_set_capture' | |
.local pmc capt | |
.local pmc capt2 | |
$P1 = new ['String'] | |
capt = new ['Capture'] | |
capt2 = new ['Capture'] | |
capt[0] = 1337 | |
set capt2, capt | |
$I0 = capt2[0] | |
is($I0, 1337, "Set PMC values correct") | |
$P0 = new ['Role'] | |
push_eh set_badpmc | |
set capt, $P5 | |
pop_eh | |
goto finally | |
set_badpmc: | |
.get_results($P1) | |
say "error:" | |
say $P1 | |
ok(1, "Bad set_pmc handled properly") | |
finally: | |
.end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment