From 84fb84f34a0a8aba27ef9c6f300f344e4c82f08c Mon Sep 17 00:00:00 2001 From: Mohammad S Anwar Date: Sat, 12 May 2018 10:23:15 +0100 Subject: [PATCH] Added test for method roll(). --- t/roll.t | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/t/roll.t b/t/roll.t index af0c2e5..a8bc0fa 100644 --- a/t/roll.t +++ b/t/roll.t @@ -2,7 +2,7 @@ use strict; use warnings; -use Test::More tests => 9; +use Test::More tests => 10; use File::Spec::Functions; use Test::Output; @@ -46,5 +46,9 @@ stderr_like "Fails for missing file" ; +stderr_like + { eval{ $class->$method($file) } } + qr/does not exist/, + "File $file does not exists" + ; } -