Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Regression test with nested data structures -- Or how to use Test::Deep?

by ELISHEVA (Prior)
on Oct 18, 2012 at 13:31 UTC ( #999735=note: print w/ replies, xml ) Need Help??


in reply to Regression test with nested data structures -- Or how to use Test::Deep?

I haven't tried this myself, but looking at the docs, another possibility would be to use num($number, $tolerance) to test the time field. If you set the time tolerance wide enough, then you should be able to pass a test on that field without having to pre-filter the hash and remove the timestamp key.


Comment on Re: Regression test with nested data structures -- Or how to use Test::Deep?
Download Code
Re^2: Regression test with nested data structures -- Or how to use Test::Deep?
by LanX (Canon) on Oct 18, 2012 at 13:35 UTC
    Thanks, interesting option! :)

    But I fear using a fixed time tolerace is a good possibility to produce tests which fail occasionally...

    Cheers Rolf

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://999735]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (8)
As of 2015-07-03 17:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (54 votes), past polls