Utility module for XML::Schema regression tests. use XML::Schema::Test; # specify number of tests ntests(2); # test if passed value equates true (ok) or false (not ok) ok( $true_or_false ); # test if result matches expected value (ok) or not (not ok) match( $result, $expect )


This module exports the following subroutines into the caller's package.







ok( $foo ); ok( defined $foo ); ok( $foo > 10 );


ok( $foo, '$foo is not true' ); ok( defined $foo, '$foo is not defined' ); ok( $foo > 10, '$foo is not > 10' );

Called to test that a result string matches an expected string. Calls ok() with a true value if they match or a false value if not.

match( $foo, 'The foo string' );