Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Test::More arrays

by perldiverx (Beadle)
on Jan 31, 2013 at 22:04 UTC ( #1016404=perlquestion: print w/replies, xml ) Need Help??
perldiverx has asked for the wisdom of the Perl Monks concerning the following question:

I'm writing a script using Test::More and one of the functions I have to test inputs a string and outputs an array. How does Test::More handle this? I've only seen examples with strings and integers. Edit: I figured out what I was doing wrong...

Replies are listed 'Best First'.
Re: Test::More arrays
by toolic (Bishop) on Jan 31, 2013 at 22:32 UTC
Re: Test::More arrays
by frozenwithjoy (Priest) on Feb 01, 2013 at 05:27 UTC
    Edit: I figured out what I was doing wrong...

    When you figure stuff out on your own, you should post your solution so that others might learn from it.

Re: Test::More arrays
by Anonymous Monk on Feb 01, 2013 at 13:19 UTC
    Yes, please. The next person to have the same problem you did will now give you experience-points ("ding! ding!") instead of howling at the moon.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1016404]
Approved by toolic
[LanX]: yes, test passed :)
[sierpinski]: woo hoo! you can go home for the day now
[Eily]: does this mean you'll give up the random prefix solution LanX?
[LanX]: yep, sorry ;(
[Eily]: such a fine and clever workaround though...
[LanX]: well even my random fingers have memory ...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (13)
As of 2017-03-28 13:01 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (331 votes). Check out past polls.