[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

test/unit : some more assertions ?

Its Me

11/15/2004 5:06:00 AM

Would it make sense to add some more set-liks assertions to test/unit?

I find I commonly need things like:

set1.is_superset_of? set2
set1.is_subset?_of? set2
set.any? block
set.all? block
set.one? block

Would these be useful to add to test/unit as standard assertions (for better
error messages)?

Thanks



1 Answer

Mohammad Khan

11/15/2004 5:08:00 PM

0

On Mon, 2004-11-15 at 00:08, itsme213 wrote:
> Would it make sense to add some more set-liks assertions to test/unit?
>
> I find I commonly need things like:
>
> set1.is_superset_of? set2
> set1.is_subset?_of? set2
> set.any? block
> set.all? block
> set.one? block

It would be great to have them in Test::Unit

--
Mohammad

>
> Would these be useful to add to test/unit as standard assertions (for better
> error messages)?
>
> Thanks
>
>