#482: t/examples/pod.t: 5 test failures
---------------------+------------------------------------------------------
 Reporter:  jkeenan  |       Owner:     
     Type:  bug      |      Status:  new
 Priority:  normal   |   Milestone:     
Component:  none     |     Version:     
 Severity:  medium   |    Keywords:     
     Lang:           |       Patch:     
 Platform:           |  
---------------------+------------------------------------------------------

Comment(by mikehh):

 test 28 docs/book/ch04_pir_subroutines.pod (29 in .1.log)

 there were at least 2 errors in this - it did not like concatenating an
 integer parameter onto a string - if I put in in an Integer register first
 then converted in a register and then concatenated it is ok, also there
 was a missing quote after " years old - I added a new line as well.  There
 was a missing space before "You are ". I added a comma space there.

 {{{
 # docs/book/ch04_pir_subroutines.pod
 #
 #
 .sub 'MySub'
    .param int yrs :named("age")
    .param string call :named("name")
    $S0 = "Hello " . call
    $I0 = yrs
    $S1 = $I0
    $S1 = ", You are " . $S1
    $S1 = $S1 . " years old\n"
    print $S0
    print $S1
 .end

 .sub main :main
    'MySub'("age" => 42, "name" => "Bob")
 .end
 #

 }}}

 Cheers,

 Michael (mikehh)

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/482#comment:4>
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