Guest User

Untitled

a guest
Jul 19th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. .sub 'test_set_capture'
  2. .local pmc capt
  3. .local pmc capt2
  4. $P1 = new ['String']
  5.  
  6. capt = new ['Capture']
  7. capt2 = new ['Capture']
  8.  
  9. capt[0] = 1337
  10.  
  11. set capt2, capt
  12.  
  13. $I0 = capt2[0]
  14. is($I0, 1337, "Set PMC values correct")
  15.  
  16. $P0 = new ['Role']
  17. push_eh set_badpmc
  18. set capt, $P5
  19. pop_eh
  20. goto finally
  21. set_badpmc:
  22. .get_results($P1)
  23. say "error:"
  24. say $P1
  25. ok(1, "Bad set_pmc handled properly")
  26. finally:
  27. .end
Add Comment
Please, Sign In to add comment