Author: allison
Date: Tue Mar 13 22:48:41 2007
New Revision: 17476

Modified:
   trunk/runtime/parrot/library/Test/More.pir

Log:
[Test::More] Change 'is' to perform comparision based on the type of the
expected value, not the type of the received value.


Modified: trunk/runtime/parrot/library/Test/More.pir
==============================================================================
--- trunk/runtime/parrot/library/Test/More.pir  (original)
+++ trunk/runtime/parrot/library/Test/More.pir  Tue Mar 13 22:48:41 2007
@@ -260,11 +260,11 @@
     .local int pass
     pass = 0
 
-       .local string l_type
-       l_type = typeof left
+       .local string r_type
+       r_type = typeof right
 
-       if l_type == 'Float' goto num_compare
-       if l_type == 'Int'   goto num_compare
+       if r_type == 'Float' goto num_compare
+       if r_type == 'Int'   goto num_compare
        goto string_compare
 
   num_compare:

Reply via email to