While I agree with David, this argument is almost completely pointless. Nobody reads the raw TAP output! If you want your TAP harness to display "got" and "expected", let it. If you want it so say "foo" and "bar" (so they line up :-P), then great.

The actual TAP is going to live in a protocol document for implementers to read. The end-user will likely be using a harness and Test::More (or $LANGUAGE_OF_CHOICE equivalent), so this doesn't matter at all. TAP will be equally useful whether or not we use "got" and "expected".

When was the last time you netcat'd to slashdot to get the list of articles? Never? Exactly -- because you have software to handle the protocol for you. (Yes, yes, people telnet to port 80 and type "GET /" or whatever to debug their server. But it's not normal behavior, and 99.99% of HTTP users have no idea what an HTTP header even is.)

Regards,
Jonathan Rockway

David Landgren wrote:
demerphq wrote:
On 7/12/06, Smylers <[EMAIL PROTECTED]> wrote:
David Landgren writes:

> Expected and actual has a long tradition in scientific endeavour,

And are still sucky as they are different lengths meaning the two
outputs are offset on the screen making it harder to see the failure.

Yves, that is absolute nonsense. The current output already has it that way:

% perl -MTest::More -e 'plan(tests => 1); is("slothrop", "porpentine")'
1..1
not ok 1
#   Failed test in -e at line 1.
#          got: 'slothrop'
#     expected: 'porpentine'
# Looks like you failed 1 test of 1.

They look lined up to me.

They strike me as the teams most intuitively recognizable and least open
to misinterpretation.

I choose to disagree.

I think its more important to instantly see the difference between two
simple outputs than it is to use the most absolutely appropriate
terms.

But you cannot instantly see with what you suggest, since the two words are *exactly the same length*!

With 'expected' and 'actual', the lengths are different, that's the whole point. And of course, they would be appropriately right-justified to line up their values.

Also how can people misinterpret:

Want: X
Have: Y

They are not very typographically distant.

David

Reply via email to