http://www.perlmonks.org?node_id=194009


in reply to Re: Test::More bug?
in thread Test::More bug?

Your tests and your data to test don't match up. With a few changes this runs fine for me.

Yes, that was the idea!

I'm expecting it to say:"test failed: got 6"
but instead it says "20" and "5"!
Also, when all the values match up as they should, I still get an error. When I try cutting and pasting the precise example from 'perldoc Test::Tutorial', my actual and tested values for hour are '16' but it says it actually "got 6".!!

use Your::Eyes;

Replies are listed 'Best First'.
Re: Re: Re: Test::More bug?
by danichka (Hermit) on Aug 30, 2002 at 15:37 UTC
    I'm expecting it to say:"test failed: got 6"
    but instead it says "20" and "5"!


    20 is the line number and 5 is the test number that failed.

    When I try cutting and pasting the precise example from 'perldoc Test::Tutorial', my actual and tested values for hour are '16' but it says it actually "got 6"

    Like I said last time I think this is because your timezone is different from the author's. If I am wrong hopefully someone will clear that up.

    use Your::Eyes;

    I did, but they were tired and kept trying to close on me. Seriously though my "use Your::Head;" is merely my sig and wasn't an insult nor was it directed at you. I also think that it is a little silly to downvote some of my very old nodes over this.

    use Your::Head;