Re: Test::Exception... comments?

2002-04-10 Thread Curt Sampson
(And yes, it's not a co-incidence that this looks a lot like Beck and Gamma's unit test frameworks for Java and Smalltalk.) Thoughts? cjs -- Curt Sampson <[EMAIL PROTECTED]> +81 90 7737 2974 http://www.netbsd.org Don't you know, in this new Dark Age, we're all light. --XTC

Re: Comparing Data Structures Slopply

2002-04-10 Thread Curt Sampson
to make. And also note that then you wouldn't need any special test, since your standard "is equal" test would invoke $obj1->is_equal($obj2). (Assuming that they both accept those messages--otherwise it would just compare the references to see if they both refer to the same obje

Re: Comparing Data Structures Slopply

2002-04-10 Thread Curt Sampson
l right. But how do you know if \["one", "two", "three"] is a bag or a set? Well, it's whatever you want it to be, until you add another "three" to it, at which point it can't be a set. Ah, the joys of an untyped language. cjs -- Curt Sampson <[EMAIL PROTECTED]> +81 90 7737 2974 http://www.netbsd.org Don't you know, in this new Dark Age, we're all light. --XTC

Re: Comparing Data Structures Slopply

2002-04-10 Thread Curt Sampson
On Wed, 10 Apr 2002, Mark Fowler wrote: > On Wed, 10 Apr 2002, Curt Sampson wrote: > > eq_set() is really bag comparison. Well, my point was, it *is* a set comparison if you pass it sets. The problem, in my view, is that perl lets you pass it something which is not a set. Thus,

Re: Comparing Data Structures Slopply

2002-04-09 Thread Curt Sampson
can't have multiple instances of a particular value in them. If I iterate over a set using the common idiom for the language and data structure, I should never get multiple instances of the same value back. I think the problem in this case is not that the test method you want doesn't

Re: Test::Exception... comments?

2002-04-09 Thread Curt Sampson
I have any real objection to this, but I can't see where I'd ever use it. The rest looks great, however. Ideally it should end up in Test::More at some point, I would think. cjs -- Curt Sampson <[EMAIL PROTECTED]> +81 90 7737 2974 http://www.netbsd.org Don't you

Re: Test::Harness Conditional Test Execution

2002-03-25 Thread Curt Sampson
it probably will. I still encourage people to > use it. Well, since I need it for my current method of working, I'll just use it and be aware that it will change. cjs -- Curt Sampson <[EMAIL PROTECTED]> +81 90 7737 2974 http://www.netbsd.org Don't you know, in this new Dark Age, we're all light. --XTC

Test::Harness Conditional Test Execution

2002-03-24 Thread Curt Sampson
presumbly the documentation is saying that this is supposed to be a file containing the test results, not the test code. Hmmm. cjs -- Curt Sampson <[EMAIL PROTECTED]> +81 90 7737 2974 http://www.netbsd.org Don't you know, in this new Dark Age, we're all light. --XTC