Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created June 17, 2018 19:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Whateverable/9e01d0c675e8be0f28cb50b3fe42712f to your computer and use it in GitHub Desktop.
Save Whateverable/9e01d0c675e8be0f28cb50b3fe42712f to your computer and use it in GitHub Desktop.
evalable6
use Test; throws-like 'my class Foo {}; die', X::AdHoc; throws-like 'my class Foo {}; die', X::AdHoc
1..2
ok 1 - 'my class Foo {}; die' died
ok 2 - right exception type (X::AdHoc)
ok 1 - did we throws-like X::AdHoc?
1..2
ok 1 - 'my class Foo {}; die' died
ok 2 - right exception type (X::AdHoc)
ok 2 - did we throws-like X::AdHoc?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment