我是Pod-Perl5 Perl 6模块解析Perl 5 pod的作者。在Perl 6.c发布之前,此模块与panda install Pod::Perl5
安装良好。现在它失败并出现大量错误(摘录如下,完整输出为here)。运行测试套件时,所有测试均通过:prove --exec perl6 -r
我在IRC #perl6
频道上问过,并试过“核武所有,重新安装”的策略。它没用。其他人可以帮忙吗?
$ panda install Pod::Perl5
==> Fetching Pod::Perl5
==> Building Pod::Perl5
==> Testing Pod::Perl5
# Failed test 'found 8 paragraphs'
# at t/Grammar/01_formatting.t line 11
# expected: '8'
# got: '1'
Use of uninitialized value $v of type Any in string context
Any of .^name, .perl, .gist, or .say can stringify undefined things, if needed. in block <unit> at t/Grammar/01_formatting.t line 13
# Failed test 'match format text'
# at t/Grammar/01_formatting.t line 13
# expected: 'this text is an example of inline italicised/emphasised'
# got: ''
Use of uninitialized value $v of type Any in string context
Any of .^name, .perl, .gist, or .say can stringify undefined things, if needed. in block <unit> at t/Grammar/01_formatting.t line 17
# Failed test 'matches format text'
# at t/Grammar/01_formatting.t line 17
# expected: 'this text is italicised/emphasised
# across
# newlines'
# got: ''
Use of uninitialized value $v of type Any in string context
Any of .^name, .perl, .gist, or .say can stringify undefined things, if needed. in block <unit> at t/Grammar/01_formatting.t line 21
# Failed test 'matches format text'
# at t/Grammar/01_formatting.t line 21
# expected: 'italicised words'
# got: ''
Use of uninitialized value $v of type Any in string context
Any of .^name, .perl, .gist, or .say can stringify undefined things, if needed. in block <unit> at t/Grammar/01_formatting.t line 25
# Failed test 'matches format text'
# at t/Grammar/01_formatting.t line 25
# expected: 'italicised
# words'
# got: ''
Use of uninitialized value $v of type Any in string context
Any of .^name, .perl, .gist, or .say can stringify undefined things, if needed. in block <unit> at t/Grammar/01_formatting.t line 29
# Failed test 'matches format text'
# at t/Grammar/01_formatting.t line 29
# expected: 'bolded B<words> within italics!'
# got: ''
Use of uninitialized value $v of type Any in string context
Any of .^name, .perl, .gist, or .say can stringify undefined things, if needed. in block <unit> at t/Grammar/01_formatting.t line 33
...
答案 0 :(得分:2)
熊猫打电话证明如下:
aList=['w','o','r','d']
aString=reduce(lambda x,y:x+y,aList)
翻译成bash,即:
$prove-command, '-e', "$*EXECUTABLE $libs -Ilib", "--norc", '-r', 't/'
结果与您提供的输出完全相同。
请使用上面提供的信息在https://github.com/tadzik/panda/issues提交错误报告。
答案 1 :(得分:1)
将use lib 'lib';
更改为use lib '../lib';
以便在子目录中进行测试有助于。我不太确定它是否应该。