Test::LectroTest::Property

Test::LectroTest::Property is a Perl module with properties that make testable claims about your software.
Download

Test::LectroTest::Property Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Tom Moertel
  • Publisher web site:
  • http://search.cpan.org/~tmoertel/Test-LectroTest-0.3500/lib/Test/LectroTest.pm

Test::LectroTest::Property Tags


Test::LectroTest::Property Description

Test::LectroTest::Property is a Perl module with properties that make testable claims about your software. Test::LectroTest::Property is a Perl module with properties that make testable claims about your software.SYNOPSIS use MyModule; # provides my_function_to_test use Test::LectroTest::Generator qw( :common ); use Test::LectroTest::Property qw( Test ); use Test::LectroTest::TestRunner; my $prop_non_neg = Property { ##, test => sub { my ($tcon,$x) = @_; thing_to_test($x) >= 0 }, name => "thing_to_test is non-negative" );Both are equivalent, but the first is concise, easier to read, and lets LectroTest do some of the heavy lifting for you. The second is probably better, however, if you are constructing property specifications programmatically. Requirements: · Perl


Test::LectroTest::Property Related Software