use strict; use warnings; use lib qw(lib); use Test::More tests => 16; use_ok('URI::Find::Simple'); eval { URI::Find::Simple::list_uris() }; ok($@ =~ /expected a text string/, "can't call list_uris without text"); eval { URI::Find::Simple::change_uris() }; ok($@ =~ /expected a text string/, "can't call change_uris without text"); eval { URI::Find::Simple::change_uris('bob') }; ok($@ =~ /expected a code ref/, "can't call change_uris without subref"); ok(my $text = <