Skip to content

Instantly share code, notes, and snippets.

@zoffixznet
Created January 9, 2016 18:15
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 zoffixznet/313f5520cdd6440a68bf to your computer and use it in GitHub Desktop.
Save zoffixznet/313f5520cdd6440a68bf to your computer and use it in GitHub Desktop.
zoffix@ZofMain:~/Desktop/CPANPRC/IO-MiddleMan$ perl6 t/06-errors.t
1..2
ok 1 - code dies
not ok 2 - right exception type (X::AdHoc)
# Failed test 'right exception type (X::AdHoc)'
# at /home/zoffix/Desktop/CPANPRC/IO-MiddleMan/lib/.precomp/413F3BD5D4F94D649F3E47499CCF19AF880EAC42.1451271052.33018/94/945084FFAEAD20CB3C68E3F19AEC7BA6516E078D line 1
# Expected: X::AdHoc
# Got: X::AdHoc
# Exception message: Cannot instantiate with .new. Please use one of .hijack, .capture, .mute, or .normal methods.
# Looks like you failed 1 test of 2
not ok 1 - did we throws-like X::AdHoc?
# Failed test 'did we throws-like X::AdHoc?'
# at t/06-errors.t line 5
1..1
# Looks like you failed 1 test of 1
zoffix@ZofMain:~/Desktop/CPANPRC/IO-MiddleMan$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment