#1384: t/examples/pir.t: test #2 (quine_ord) failing
---------------------+------------------------------------------------------
 Reporter:  jkeenan  |       Owner:       
     Type:  bug      |      Status:  new  
 Priority:  normal   |   Milestone:       
Component:  testing  |     Version:  1.9.0
 Severity:  medium   |    Keywords:       
     Lang:           |       Patch:       
 Platform:           |  
---------------------+------------------------------------------------------
 Test #2 in ''t/examples/pir.t'' is failing for me in trunk.  Here is the
 test:
 {{{
 186 # expected output of a quine is the quine itself187
 $expected{'quine_ord.pir'} =
     Parrot::Test::slurp_file("examples/pir/quine_ord.pir");
 188
 189 my %skips;
 190
 191 while ( my ( $example, $expected ) = each %expected ) {
 192     my $skip = $skips{$example};
 193     if ($skip) {
 194         my ( $cond, $reason ) = @{$skip};
 195         if ( eval "$cond" ) {
 196             Test::More->builder->skip("$example $reason");
 197             next;
 198         }
 199     }
 200     example_output_is( "examples/pir/$example", $expected );
 201 }
 }}}
 The test file itself hasn't changed in months, so any problem is either in
 the example file or in PIR itself.

 The example file, like many others underwent surgery this week related to
 Getopt::Obj.
 {{{
 svn diff -r 43059 examples/pir/quine_ord.pir
 Index: examples/pir/quine_ord.pir
 ===================================================================
 --- examples/pir/quine_ord.pir  (revision 43059)
 +++ examples/pir/quine_ord.pir  (working copy)
 @@ -3512,7 +3512,7 @@

      # Specification of command line arguments.
      .local pmc getopts
 -    getopts = new "Getopt::Obj"
 +    getopts = new ["Getopt";"Obj"]
      push getopts, "print-code-as-data"

      # Looking at command line
 }}}
 The output of the test is massive.  Since the failure is of the `got`
 versus `expected` type, I compared those sections in the output of `prove
 -v`.
 {{{
 23c23
 < #     getopts = new "Getopt::Obj"
 ---
 > #     getopts = new ["Getopt";"Obj"]
 }}}
 So we 'got' `"Getopt::Obj"` when we were expecting `["Getopt";"Obj"]`.

 tene, can you take a look?  Thanks.

 kid51

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/1384>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets

Reply via email to