On Thu, Jan 22, 2009 at 09:22, Moritz Lenz <mor...@faui2k3.org> wrote:
> Richard Hainsworth wrote:
> But it is interesting to think about the case where a user wants two
> different diagnostic test messages (to all the testing gurus out there:
> do you actually want such a feature?). It shouldn't be too hard to do;
> maybe just  :OK('True message', 'False message')?
>
maybe

  $x == $y :ok('message') :nok('failure message')

or

  $x == $y
    :ok({ .true ?? 'message' !! 'failure message' })
    :diag( 'tap comment', :some_tap_property<some values>)

to handle success and failure messages, and set custom diagnostic info
in the tap stream. that is, as long as the result of the comparison is
available in $_ to the :ok adverb.

~jerry

Reply via email to