#!/usr/bin/perl -w
use Test;
BEGIN {plan tests=>3} ;
use Test::Data qw(Array);
@arr=qw(roop ras dar );
$a=dar;
array_any_ok( $a, @arr, [ NAME] );
array_empty_ok(@arr ,[ME] );
gives me an output as
1..3
# Running under perl version 5.006 for linux
# Current time local: Tue Jun 22 16:51:24 2004
# Current time GMT: Tue Jun 22 11:21:24 2004
# Using Test.pm version 1.25
ok firstYou tried to run a test without a plan! Gotta have a plan. at /usr/lib
perl5/site_perl/5.6.0/Test/Data/Array.pm line 47
# Looks like your test died before it could output anything.
Can u help.i m runng ths prog on Linux 5.6 version.Test-Data0.92 version.
Edit by castaway, retitle from 'Help', added pre tags
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.