Test-Deep reviews

cpanratings
 

RSS | Module Info | Add a review of Test-Deep

Test-Deep (0.112) ****

Great module that allowed me to thoroughly test a bunch of very large structures.

My only disappointment is the documentation: it currently (v0.112) doesn't mention some of the available functions. One of such is hash_each() and I spent an hour or more searching for the solution without keys()... At the end, I've decided to try to implement it myself, when I spotted it already made in the source.

Other than that, this module is gold!

Zoffix Znet - 2013-12-26T02:23:02 (permalink)

3 out of 3 found this review helpful. Was this review helpful to you?  Yes No

Test-Deep (0.109) *****

The module was just what I was looking for. Great descriptive name made finding it easy.

Paweł Murias - 2012-03-31T11:32:18 (permalink)

Was this review helpful to you?  Yes No

Test-Deep (0.108) *****

This module is delicious. We use it heavily in our test scripts, for comparing expected vs. actual output.

Evan Haas - 2011-05-23T11:43:28 (permalink)

2 out of 2 found this review helpful. Was this review helpful to you?  Yes No

Test-Deep (0.103) *****

Awesome. This is the (no longer) missing module for testing sets, subsets and the likes.

Want to make sure your sub is returning 3 elements out of 10 allowed ones, but don't know in which order it'll return it?

cmp_deeply( [ @three_elements ], subsetof( @ten_elements ) );

That simple!

Jose Alves de Castro - 2008-08-05T07:26:32 (permalink)

6 out of 7 found this review helpful. Was this review helpful to you?  Yes No

Test-Deep (0.100) *****

This module does a great job. Usage is very straightforward and intuitive. Highly recommended to check if data structures look the way you expect them to.

Martin Gutsch - 2008-04-10T07:09:17 (permalink)

4 out of 6 found this review helpful. Was this review helpful to you?  Yes No

Test-Deep (0.096) ****

If you need to test a big data structure's content, and you don't know or care about every last little bit of it, Test::Deep makes it easy to specify exactly what you need to. You can say, for example, that some very deep node has a few given properties and that you don't care about anything else -- or you can build a complex structure of comparisons to be applied to your tested struct. It's a big time-saver.

Ricardo Signes - 2007-05-08T19:18:14 (permalink)

5 out of 5 found this review helpful. Was this review helpful to you?  Yes No

Test-Deep (0.096) *****

I needed to test that a large arrayref of hashrefs contained a couple elements somewhere in a couple different hashrefs in the structure.

By combining cmp_deeply(), supersetof() and superhashof() from this module, I was able to solve the problem elegantly.

Highly recommended for data structure testing. Don't wait for a complex data structure to try it.

Functions like superhashof() also make it even easier than is_deeply() to write tests for some simple cases.

Mark Stosberg - 2007-01-23T11:12:04 (permalink)

7 out of 7 found this review helpful. Was this review helpful to you?  Yes No

Test-Deep (0.089) *****

I've found this module the best choice for testing complex data structures like ASTs. When a test fails, it provides much more detailed info on how two deep structures differ than Test::More's eq_array and eq_hash do. The brilliant idea of this module reminds me of a funny language named TXL.

Testing ASTs could hardly be interesting without Test::Deep! So I decide to rate it five stars.

Agent Zhang - 2005-10-22T06:22:47 (permalink)

5 out of 5 found this review helpful. Was this review helpful to you?  Yes No

Test-Deep (0.085) *****

Top notch module! It is exactly as advertised "Extremely flexible deep comparison". This module saved me many hours of tedious "manual" deep test writing. Its interface is very sofisticated, and can seem at times to be complex, but once you get your head around it, you will happy you did.

Stevan Little - 2004-06-05T12:04:43 (permalink)

3 out of 3 found this review helpful. Was this review helpful to you?  Yes No

Test-Deep (0.08) *****

Handy for testing complex data structures.

Adrian Howard - 2003-09-10T12:39:40 (permalink)

3 out of 3 found this review helpful. Was this review helpful to you?  Yes No