TAP for Perl 6

Ovid publiustemp-tapx at yahoo.com
Mon Jan 19 10:55:06 GMT 2009


Working on Perl 6 and am going nuts trying to figure out some core issues with the test suite diagnostics.  We're approaching things a touch differently from Perl 5, such as ensuring all diagnostics go to STDOUT rather than STDIN, but I also have problems with tests like this:


  use Test;
  plan *;    # no_plan
  ok 0, 'Should be true';

Currently that should output something like:

  not ok 1 - Should be true
  # Expected a true value
  # have: 0

The first line of the diagnostic can be overridden (and sometimes is) and I'm not trying to conform to the "proper" YAML/JSON spec because Perl 6 is missing a few keys things and we haven't nailed this down.  However, I still want to figure out a few things better.  We don't have normal have/want lines for boolean assertions, so what should they be?  (Also, you can specify 'verbose' mode for tests and you'll get diagnostics for every test, not just failing).

I think we need a clean way of specifying how the comparison is made.  "1.0" == "1.00" but it does not eq "1.00".  How should I render that?

 
Not a pressing issue, but I thought I would toss it out there.

Cheers,
Ovid
--
Buy the book         - http://www.oreilly.com/catalog/perlhks/
Tech blog            - http://use.perl.org/~Ovid/journal/
Twitter              - http://twitter.com/OvidPerl
Official Perl 6 Wiki - http://www.perlfoundation.org/perl6



More information about the tapx-dev mailing list