我正在以下回溯当我尝试prove factorial: Cannot detect source of 'factorial'! at /usr/share/perl/5.18/TAP/Parser/IteratorFactory.pm line 263.
TAP::Parser::IteratorFactory::detect_source('TAP::Parser::Iterator
当我使用prove实用程序运行perl测试时,如果测试方法包含print未被换行符终止的语句,则失败。 use Test::More tests=>1;
ok(foo(), "calling foo");
sub foo{
print "A";
1;
}
这导致 Bad plan. You planned 1 tests but ran 0.
如果我追加一个新