Archive-TarGzip

 view release on metacpan or  search on metacpan

t/Archive/TarGzip/expected/t/Data/Str2Num.pm  view on Meta::CPAN


########
# The Test::STDmaker module uses the data after the __DATA__ 
# token to automatically generate the this file.
#
# Don't edit anything before __DATA_. Edit instead
# the data after the __DATA__ token.
#
# ANY CHANGES MADE BEFORE the  __DATA__ token WILL BE LOST
#
# the next time Test::STDmaker generates this file.
#
#


=head1 TITLE PAGE

 Detailed Software Test Description (STD)

 for

 Perl Data::Str2Num Program Module

 Revision: -

 Version: 

 Date: 2003/07/20

 Prepared for: General Public 

 Prepared by:  http://www.SoftwareDiamonds.com support@SoftwareDiamonds.com

 Classification: None

=head1 SCOPE

This detail STD and the 
L<General Perl Program Module (PM) STD|Test::STD::PerlSTD>
establishes the tests to verify the
requirements of Perl Program Module (PM) L<Data::Str2Num|Data::Str2Num>

The format of this STD is a tailored L<2167A STD DID|Docs::US_DOD::STD>.
in accordance with 
L<Detail STD Format|Test::STDmaker/Detail STD Format>.

#######
#  
#  4. TEST DESCRIPTIONS
#
#  4.1 Test 001
#
#  ..
#
#  4.x Test x
#
#

=head1 TEST DESCRIPTIONS

The test descriptions uses a legend to
identify different aspects of a test description
in accordance with
L<STD FormDB Test Description Fields|Test::STDmaker/STD FormDB Test Description Fields>.

=head2 Test Plan

 T: 7^

=head2 ok: 1


  C:
     use File::Package;
     my $fp = 'File::Package';
     my $s2n = 'Data::Str2Num';
     my $loaded;
 ^
 VO: ^
  N: UUT not loaded^
  A: $loaded = $fp->is_package_loaded($s2n)^
  E:  ''^
 ok: 1^

=head2 ok: 2

  N: Load UUT^
  R: L<DataPort::DataFile/general [1] - load>^
  S: $loaded^
  C: my $errors = $fp->load_package($s2n)^
  A: $errors^
 SE: ''^
 ok: 2^

=head2 ok: 3

  N: num2dec(\'033\')^
  A: $s2n->str2int('033')^
  E: 27^
 ok: 3^

=head2 ok: 4

  N: num2dec(\'0xFF\')^
  A: $s2n->str2int('0xFF')^
  E: 255^
 ok: 4^

=head2 ok: 5

  N: num2dec(\'0b1010\')^
  A: $s2n->str2int('0b1010')^
  E: 10^
 ok: 5^

=head2 ok: 6

  N: num2dec(\'255\')^
  A: $s2n->str2int('255')^
  E: 255^
 ok: 6^



( run in 0.748 second using v1.01-cache-2.11-cpan-5b529ec07f3 )