ACIL FM
Dark
Refresh
Current DIR:
/home/.cpan/build/Test-Fatal-0.017-0/examples
/
home
.cpan
build
Test-Fatal-0.017-0
examples
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
convert-to-test-fatal
2.82 MB
chmod
View
DL
Edit
Rename
Delete
exception_like.t
488 B
chmod
View
DL
Edit
Rename
Delete
Edit file: /home/.cpan/build/Test-Fatal-0.017-0/examples/exception_like.t
use strict; use warnings FATAL => 'all'; use Test::More; use Test::Fatal; use Carp 'confess'; sub exception_like(&$;$) { my ($code, $pattern, $name) = @_; like( &exception($code), $pattern, $name ); } exception_like(sub { confess 'blah blah' }, qr/foo/, 'foo seems to appear in the exception'); # the test only passes when we invert it unlike( ( exception { confess 'blah blah' } || '' ), qr/foo/, 'foo does NOT ACTUALLY appear in the exception', ); done_testing;
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply