1BEGIN { 2 if($ENV{PERL_CORE}) { 3 chdir 't'; 4 @INC = '../lib'; 5 } 6} 7 8use strict; 9use Pod::Simple::Search; 10use Test; 11BEGIN { plan tests => 16 } 12 13print "# Some basic sanity tests...\n"; 14 15my $x = Pod::Simple::Search->new; 16die "Couldn't make an object!?" unless ok defined $x; 17print "# New object: $x\n"; 18print "# Version: ", $x->VERSION, "\n"; 19ok defined $x->can('callback'); 20ok defined $x->can('dir_prefix'); 21ok defined $x->can('inc'); 22ok defined $x->can('laborious'); 23ok defined $x->can('limit_glob'); 24ok defined $x->can('limit_re'); 25ok defined $x->can('recurse'); 26ok defined $x->can('shadows'); 27ok defined $x->can('verbose'); 28ok defined $x->can('survey'); 29ok defined $x->can('_state_as_string'); 30ok defined $x->can('contains_pod'); 31ok defined $x->can('find'); 32ok defined $x->can('simplify_name'); 33 34print "# Testing state dumping...\n"; 35print $x->_state_as_string; 36$x->inc("I\nLike Pie!\t!!"); 37print $x->_state_as_string; 38 39print "# bye\n"; 40ok 1; 41 42