Ticket #1924 (closed bug: fixed)

Opened 11 years ago

Last modified 11 years ago

Incorrect use of is function in PIR tests raises misleading error

Reported by: rfw Owned by:
Priority: normal Milestone:
Component: testing Version: 2.11.0
Severity: medium Keywords:
Cc: Language:
Patch status: Platform: all

Description

When attempting to compare two non-Number values with the is function in a PIR test using an epsilon parameter, the following error occurs:

too many positional arguments: 4 passed, 4 expected

This message is misleading (not to mention that it makes no sense) and should be replaced with something more suitable.

Attachments

lolwut.t Download (82 bytes) - added by rfw 11 years ago.
Simple test case.

Change History

Changed 11 years ago by rfw

Simple test case.

Changed 11 years ago by nwellnhof

  • status changed from new to closed
  • resolution set to fixed

Fixed in d4f23c7.

$ ./parrot lolwut.t
too many positional arguments: 4 passed, 3 expected
current instr.: 'parrot;Test;More;is' pc 122 (runtime/parrot/library/Test/More.pir:193)
called from Sub 'main' pc 32 (lolwut.t:5)
Note: See TracTickets for help on using tickets.