#1114: [patch] Converted some tests from perl to pir
---------------------+------------------------------------------------------
 Reporter:  mgrimes  |        Type:  cage   
   Status:  new      |    Priority:  minor  
Milestone:           |   Component:  testing
  Version:  trunk    |    Severity:  low    
 Keywords:           |        Lang:         
    Patch:  new      |    Platform:         
---------------------+------------------------------------------------------

Comment(by mgrimes):

 I have now converted t/op/string.t to pir. I also added comments to the
 TAP output for the first three. Please use perl_to_pir_v2.patch rather
 than the parl_to_pir.patch.

 string.t has a number of tests to check the comparison ops, that were
 generated by  perl code. I have moved these tests to t/op/string_cmp.t.
 They are now pure pir, but I included (in a comments to string_cmp.t) the
 code that was used to generate it.

 Hope these are helpful.

 I have also put together a perl script and a some vim macros that helped
 streamline the conversion. It is pretty ugly code, but it really helped.
 If anyone else is interested I'm happy to share the code. Alternatively,
 if there is an appropriate place to post the code, I would be happy to do
 that (it is way to kludgy to release on CPAN, etc).

 BTW, on my box, these tests now take about a third of a second to run
 while they used to take nearly 4.3 seconds. If we collectively run these
 900 times, it would save an hour of developer time. :)

 -Mark

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