Data(3pm) User Contributed Perl Documentation Data(3pm)NAME
Test::Data -- test functions for particular variable types
SYNOPSIS
use Test::Data qw(Scalar Array Hash Function);
DESCRIPTION
Test::Data provides utility functions to check properties and values of data and variables.
Functions
Plug-in modules define functions for each data type. See the appropriate module.
How it works
The Test::Data module simply imports functions from Test::Data::* modules. Each module defines a self-contained function, and puts that
function name into @EXPORT. Test::Data defines its own import function, but that does not matter to the plug-in modules.
If you want to write a plug-in module, follow the example of one that already exists. Name the module Test::Data::Foo, where you replace
Foo with the right name. Test::Data should automatically find it.
BUGS
I'm not a very good Windows Perler, so some things don't work as they should on Windows. I recently got a Windows box so I can test things,
but if you run into problems, I can use all the patches or advice you care to send.
SEE ALSO
Test::Data::Scalar, Test::Data::Array, Test::Data::Hash, Test::Data::Function, Test::Builder
SOURCE AVAILABILITY
This source is in Github:
http://github.com/briandfoy/test-data/tree/master
AUTHOR
brian d foy, "<bdfoy@cpan.org>"
COPYRIGHT AND LICENSE
Copyright (c) 2002-2009 brian d foy. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2009-02-12 Data(3pm)
Check Out this Related Man Page
Array(3pm) User Contributed Perl Documentation Array(3pm)NAME
Test::Data::Array -- test functions for array variables
SYNOPSIS
use Test::Data qw(Array);
DESCRIPTION
Functions
array_any_ok( ITEM, ARRAY [, NAME] )
Ok if any element of ARRAY is ITEM.
array_none_ok( ITEM, ARRAY [, NAME] )
Ok if no element of ARRAY is ITEM.
array_once_ok( ITEM, ARRAY [, NAME] )
Ok if only one element of ARRAY is ITEM.
array_multiple_ok( ITEM, ARRAY [, NAME] )
Ok if more than one element of ARRAY is ITEM.
array_max_ok( NUMBER, ARRAY [, NAME] )
Ok if all elements of ARRAY are numerically less than or equal to NUMBER.
array_min_ok( NUMBER, ARRAY [, NAME] )
Ok if all elements of ARRAY are numerically greater than or equal to NUMBER.
array_maxstr_ok( ITEM, ARRAY [, NAME] )
Ok if all elements of ARRAY are asciibetically less than or equal to MAX.
array_minstr_ok( ITEM, ARRAY [, NAME] )
Ok if all elements of ARRAY are asciibetically greater than or equal to MAX.
array_sum_ok( SUM, ARRAY [, NAME] )
Ok if the numerical sum of ARRAY is SUM.
array_empty_ok( ARRAY [, NAME] )
Ok if the array contains no elements.
array_length_ok( ARRAY, LENGTH [, NAME] )
Ok if the array contains LENGTH number of elements.
array_sortedstr_ascending_ok( ARRAY, [, NAME] )
Ok if each succeeding element is asciibetically greater than or equal to the one before.
array_sortedstr_descending_ok( ARRAY, [, NAME] )
Ok if each succeeding element is asciibetically less than or equal to the one before.
array_sorted_ascending_ok( ARRAY, [, NAME] )
Ok if each succeeding element is numerically greater than or equal to the one before.
array_sorted_descending_ok( ARRAY, [, NAME] )
Ok if each succeeding element is numerically less than or equal to the one before.
SEE ALSO
Test::Data, Test::Data::Scalar, Test::Data::Function, Test::Data::Hash, Test::Builder
SOURCE AVAILABILITY
This source is in Github:
http://github.com/briandfoy/test-data/tree/master
AUTHOR
brian d foy, "<bdfoy@cpan.org>"
COPYRIGHT AND LICENSE
Copyright (c) 2002-2009 brian d foy. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2009-02-12 Array(3pm)