Commits

Anonymous committed f6395db

patching depends and testcases for Test::Count friendlyness

Comments (0)

Files changed (2)

modules/Text-Sprintf-Named/Build.PL

     dist_version_from   => 'lib/Text/Sprintf/Named.pm',
     build_requires => {
         'Test::More' => 0,
+        'Test::Warn' => 0,
     },
     add_to_cleanup      => [ 'Text::Sprintf::Named-*' ],
     create_makefile_pl => 'passthrough',

modules/Text-Sprintf-Named/t/03-incomplete.t

 
 my $obj;
 
-#Test 1
+# TEST
 $obj = Text::Sprintf::Named->new( { fmt => 'No Tokens Here!', } );
 
 warnings_are { $obj->format() }[], 'No Tokens and No Parameters';
 
-#Test 2
+# TEST
 $obj = Text::Sprintf::Named->new( { fmt => "Example >%(name)s<", } );
 
 warning_like { $obj->format() } qr/Token 'name'/,
   'Missing Token Throws Warning ( String )';
 
-#Test 3
+# TEST
 $obj = Text::Sprintf::Named->new( { fmt => "Example >%(foo)8.3f<", } );
 
 warnings_like { $obj->format() }[ qr/Token 'foo'/, qr/numeric.*sprintf/ ],
 
 no warnings 'Text::Sprintf::Named';
 
-#Test 4
+# TEST
 $obj = Text::Sprintf::Named->new( { fmt => 'No Tokens Here!', } );
 
 warnings_are { $obj->format() }[], 'No Tokens and No Parameters';
 
-#Test 5
+# TEST
 $obj = Text::Sprintf::Named->new( { fmt => "Example >%(name)s<", } );
 
 warnings_are { $obj->format() }[],
   '[Silent] Missing Token Throws Warning ( String )';
 
-#Test 6
+# TEST
 $obj = Text::Sprintf::Named->new( { fmt => "Example >%(foo)8.3f<", } );
 
 warnings_like { $obj->format() }[qr/numeric.*sprintf/],
   '[Subdued] Missing Token Throws Warning ( Float )';
 
-#Test 7
-
+# TEST
 $obj = Text::Sprintf::Named->new( { fmt => '.' } );
 
 use warnings 'Text::Sprintf::Named';
 qr/Format parameters were specified, but none/,
   'Weird Format Parameters Throws Warning';
 
-# Test 8
+# TEST
 no warnings 'Text::Sprintf::Named';
 
 warnings_are {
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.