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

1 view
Skip to first unread message

Matt Diephouse

Aug 22, 2006, 10:33:18 PM8/22/06
to 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

Oct 12, 2006, 4:53:46 PM10/12/06
to 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')


Reply all
Reply to author
0 new messages