(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
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
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
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,
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
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
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
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