TITLE PAGE
Detailed Software Test Description (STD)
for
Perl Text::Column Program Module
Revision: -
Version:
Date: 2003/07/31
Prepared for: General Public
Prepared by: http://www.SoftwareDiamonds.com support@SoftwareDiamonds.com
Classification: None
SCOPE
This detail STD and the General Perl Program Module (PM) STD establishes the tests to verify the requirements of Perl Program Module (PM) Text::Column
The format of this STD is a tailored 2167A STD DID. in accordance with Detail STD Format.
####### # # 4. TEST DESCRIPTIONS # # 4.1 Test 001 # # .. # # 4.x Test x # #
TEST DESCRIPTIONS
The test descriptions uses a legend to identify different aspects of a test description in accordance with STD FormDB Test Description Fields.
Test Plan
T: 5^
ok: 1
C:
use File::Spec;
use File::Package;
my $fp = 'File::Package';
my $tt = 'Text::Column';
my $loaded = '';
my $template = '';
my %variables = ();
my $expected = '';
^
VO: ^
N: UUT not loaded^
A: $loaded = $fp->is_package_loaded($tt)^
E: ''^
ok: 1^
ok: 2
N: Load UUT^
S: $loaded^
C: my $errors = $fp->load_package($tt)^
A: $errors^
SE: ''^
ok: 2^
ok: 3
N: format_array_table^
C:
my @array_table = (
[qw(module.pm 0.01 2003/5/6 new)],
[qw(bin/script.pl 1.04 2003/5/5 generated)],
[qw(bin/script.pod 3.01 2003/6/8), 'revised 2.03']
);
^
A: $tt->format_array_table(\@array_table, [15,7,10,15],[qw(file version date comment)])^
VO: ^
C:
$expected = << 'EOF';
file version date comment
--------------- ------- ---------- ---------------
module.pm 0.01 2003/5/6 new
bin/script.pl 1.04 2003/5/5 generated
bin/script.pod 3.01 2003/6/8 revised 2.03
EOF
1
^
E: $expected^
ok: 3^
ok: 4
N: format_hash_table - hash of array^
C:
my %hash_table = (
'module.pm' => [qw(0.01 2003/5/6 new)],
'bin/script.pl' => [qw(1.04 2003/5/5 generated)],
'bin/script.pod' => [qw(3.01 2003/6/8), 'revised 2.03']
);
^
A: $tt->format_hash_table(\%hash_table, [15,7,10,15],[qw(file version date comment)])^
VO: ^
C:
$expected = << 'EOF';
file version date comment
--------------- ------- ---------- ---------------
bin/script.pl 1.04 2003/5/5 generated
bin/script.pod 3.01 2003/6/8 revised 2.03
module.pm 0.01 2003/5/6 new
EOF
1
^
E: $expected^
ok: 4^
ok: 5
N: format_hash_table - hash of hash^
C:
%hash_table = (
'L<test1>' => {'L<requirement4>' => undef, 'L<requirement1>' => undef },
'L<test2>' => {'L<requirement3>' => undef },
'L<test3>' => {'L<requirement2>' => undef, 'L<requirement1>' => undef },
);
^
A: $tt->format_hash_table(\%hash_table, [20,20],[qw(test requirement)])^
VO: ^
C:
$expected = << 'EOF';
test requirement
-------------------- --------------------
L<test1> L<requirement1>
L<test1> L<requirement4>
L<test2> L<requirement3>
L<test3> L<requirement1>
L<test3> L<requirement2>
EOF
1
^
E: $expected^
ok: 5^
####### # # 5. REQUIREMENTS TRACEABILITY # #
REQUIREMENTS TRACEABILITY
Requirement Test
---------------------------------------------------------------- ----------------------------------------------------------------
Test Requirement
---------------------------------------------------------------- ----------------------------------------------------------------
NOTES
copyright © 2003 Software Diamonds.
Software Diamonds permits the redistribution and use in source and binary forms, with or without modification, provided that the following conditions are met:
Redistributions of source code, modified or unmodified must retain the above copyright notice, this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
SOFTWARE DIAMONDS, http://www.SoftwareDiamonds.com, PROVIDES THIS SOFTWARE 'AS IS' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SOFTWARE DIAMONDS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING USE OF THIS SOFTWARE, EVEN IF ADVISED OF NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE POSSIBILITY OF SUCH DAMAGE.
####### # # 2. REFERENCED DOCUMENTS # # #
SEE ALSO
2 POD Errors
The following errors were encountered while parsing the POD:
- Around line 224:
Non-ASCII character seen before =encoding in '©'. Assuming CP1252
- Around line 278:
=back without =over