ACIL FM
Dark
Refresh
Current DIR:
/home/.cpan/build/Test-Warnings-0.033-0/examples
/
home
.cpan
build
Test-Warnings-0.033-0
examples
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
no_plan.t
575 B
chmod
View
DL
Edit
Rename
Delete
sub.t
279 B
chmod
View
DL
Edit
Rename
Delete
synopsis_1.t
186 B
chmod
View
DL
Edit
Rename
Delete
synopsis_2.t
331 B
chmod
View
DL
Edit
Rename
Delete
test_nowarnings.t
109 B
chmod
View
DL
Edit
Rename
Delete
test_warning_contents.t
713 B
chmod
View
DL
Edit
Rename
Delete
warning_like.t
698 B
chmod
View
DL
Edit
Rename
Delete
with_done_testing.t
695 B
chmod
View
DL
Edit
Rename
Delete
with_plan.t
652 B
chmod
View
DL
Edit
Rename
Delete
Edit file: /home/.cpan/build/Test-Warnings-0.033-0/examples/with_done_testing.t
use strict; use warnings; # another demonstration of the various features of Test::Warnings, where # Test::More::done_testing is used use Test::More; use Test::Warnings ':all'; is(1, 1, 'passing test'); had_no_warnings; ok(!allowing_warnings, 'warnings are not currently allowed'); allow_warnings; ok(allowing_warnings, 'warnings are now allowed'); warn 'this warning will not cause a failure'; had_no_warnings; allow_warnings(0); ok(!allowing_warnings, 'warnings are not allowed again'); warn 'oh noes, something warned!'; # this will now fail. had_no_warnings; note 'we are done; call done_testing to signal completion. had_no_warnings will be called automatically.'; 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