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

6 out of 7 found this review helpful:

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-05 07:26:32
Was this review helpful to you?  Yes No

4 out of 6 found this review helpful:

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-10 07:09:17
Was this review helpful to you?  Yes No

5 out of 5 found this review helpful:

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-08 19:18:14
Was this review helpful to you?  Yes No

7 out of 7 found this review helpful:

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-23 11:12:04
Was this review helpful to you?  Yes No

5 out of 5 found this review helpful:

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-22 06:22:47
Was this review helpful to you?  Yes No

3 out of 3 found this review helpful:

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-05 12:04:43
Was this review helpful to you?  Yes No

3 out of 3 found this review helpful:

Test-Deep (0.08) *****

Handy for testing complex data structures.

Adrian Howard - 2003-09-10 12:39:40
Was this review helpful to you?  Yes No


the camel