aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLubos Kolouch <lubos@kolouch.net>2019-10-06 12:49:02 +0200
committerLubos Kolouch <lubos@kolouch.net>2019-10-06 12:49:02 +0200
commit806cd58d5ddaaeb0da31d335666a67bc7993106e (patch)
treeade2bde157c4a6871eee1bb787236343ab8eddbc
parentf3b697f2aa517b7c54530fd2066c0febf09e7dc4 (diff)
downloadperlweeklychallenge-club-806cd58d5ddaaeb0da31d335666a67bc7993106e.tar.gz
perlweeklychallenge-club-806cd58d5ddaaeb0da31d335666a67bc7993106e.tar.bz2
perlweeklychallenge-club-806cd58d5ddaaeb0da31d335666a67bc7993106e.zip
Adding test cases to 1
-rw-r--r--challenge-028/lubos-kolouch/perl5/ch-1.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/challenge-028/lubos-kolouch/perl5/ch-1.pl b/challenge-028/lubos-kolouch/perl5/ch-1.pl
index b4e342ff4d..04f4bb8483 100644
--- a/challenge-028/lubos-kolouch/perl5/ch-1.pl
+++ b/challenge-028/lubos-kolouch/perl5/ch-1.pl
@@ -49,5 +49,9 @@ say get_file_status($file);
use Test::More;
is (get_file_status('ch-1.pl'),'The file content is ascii.');
+is (get_file_status('.'),'The file is not regular.');
+is (get_file_status('/dev/zero'),'The file is empty.');
+is (get_file_status('ch-3.pl'),'The file does not exist.');
+is (get_file_status('/etc/shadow'),'The file is not readable.');
done_testing;