in reply to Re^3: Testing Perl Package
in thread Testing Perl Package
Hi,
Thanks for the comments.
i am testing the package with the Test::more module, see the below code,
#!/usr/bin/perl -w use strict; use SptTgtCfg; use Test::More; BEGIN { use_ok('SptTgtCfg'); } $SptTgtCfg = SptTgtCfg::Max_Num_Of_Interest_Mask->new(CAN11 => 4,C +AN29 => 4); ok( defined $SptTgtCfg, 'new() returened something' ); ok( $SptTgtCfg->isa('SptTgtCfg'), " and it's the right class" ); is( $SptTgtCfg->CAN11, 7, ' CAN11()' ); is( $SptTgtCfg->CAN29, 2, ' CAN29)' );
whether i am doing correct or not, please suggest. If i run this code, i am getting error as
1. ok 1 - use SptTgtCfg;
2. Gllobal symbol requires explicit package name
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Testing Perl Package
by choroba (Cardinal) on May 10, 2013 at 09:20 UTC | |
|
Re^5: Testing Perl Package
by Corion (Patriarch) on May 10, 2013 at 09:19 UTC | |
|
Re^5: Testing Perl Package
by Anonymous Monk on May 10, 2013 at 09:35 UTC | |
by nlalitha (Initiate) on May 10, 2013 at 11:53 UTC |