Google 网上论坛不再支持新的 Usenet 帖子或订阅项。历史内容仍可供查看。

[perl #40219] [TODO] - Steal Perl5's sprintf tests

已查看 7 次
跳至第一个未读帖子

Matt Diephouse

未读,
2006年8月22日 22:33:182006/8/22
收件人 bugs-bi...@rt.perl.org
# New Ticket Created by Matt Diephouse
# Please include the string: [perl #40219]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=40219 >


Parrot's sprintf implementation is currently quite buggy, as
evidenced by failing Tcl tests for the [format] command. Parrot
should take Perl 5's sprintf tests rather than writing up new ones.

--
Matt Diephouse

Patrick R. Michaud via RT

未读,
2006年10月12日 16:53:462006/10/12
收件人 perl6-i...@perl.org
On Thu Sep 21 14:14:24 2006, particle wrote:
> ~ TODO: figure out why so many tests need to be skipped
> ~ TODO: fix failing tests :)

I've now gone through the sprintf.t and sprintf_tests and skipped only
those tests that need to be skipped. The skipped tests are generally
due to: (1) perl5-specific features in the test, (2) parrot provides a
conversion that perl5 doesn't, or (3) the test contains a '*' modifier
and the harness can't deal with this yet.

The remaining tests have been left as errors, and should either be fixed
or marked as 'todo'. Most of the failing tests seem to be due to one of
the following:

~ a '+' flag on unsigned conversions is generating a leading '+' (e.g.,
"%+b" and "%+x" should not result in a leading '+' in output)

~ incorrectly zero-padding fixed-width, left-justified fields

~ sprintf doesn't generate an exception or error when passed an
incomplete format specifier (e.g., '%h' or '%l')

Pm


0 个新帖子