Date: | Sat, 08 Jan 2005 10:41:14 -0500 |
From: | "David A. Golden" <david [...] hyperbolic.net> |
To: | andy [...] petdance.com |
Subject: | Test::Pod -- nit in Pod |
Andy,
I found a minor nit on the docs for Test::Pod -- the very first synopsis
example doesn't work:
use Test::Pod;
plan tests => $num_tests;
pod_file_ok( $file, "Valid POD file" );
Test::Pod doesn't export plan, so this fails. This works, of course:
use Test::Pod tests => $num_tests;
pod_file_ok( $file, "Valid POD file" );
Or this (resembling the other examples):
use Test::More;
use Test::Pod;
plan tests => $num_tests;
pod_file_ok( $file, "Valid POD file" );
I know this is pedantic, but it bit me while fooling with some
command-line perl in a scriptfile to test out my pod. With most people
putting their plan in the "use Test::Pod" line or just calling
"all_pod_files_ok", I doubt this bites most people, but it's a easy fix,
so I thought I'd mention it.
Best regards,
David Golden