Acme-Machi
view release on metacpan or search on metacpan
t/Acme-Machi.t view on Meta::CPAN
$loli_first->affectionate($fh);
ok($my_string =~ qr/starving/, 'Default \'Words\' is set');
like($loli_second->habit(), qr/[DB]FS/, 'Default \'SRCH_Habit\' is set');
#############################################################
# Cannot use instance method to construct object
#############################################################
{
local $@;
isnt(eval{$loli_first->new(); 1}, 1, 'caller test')
&& like($@, qr/cannot.+?instance method.+/i, 'Die with a pre-defined error msg');
}
#############################################################
# Cannot change one's habit with undefined key word
#############################################################
$loli_second->have_the_habit_of('Smily_Search');
like($loli_second->habit(), qr/[DB]FS/,
'Except for \'DFS\' & \'BFS\', the others are ignored.');
#############################################################
( run in 0.681 second using v1.01-cache-2.11-cpan-65fba6d93b7 )