[interfacekit] Re: BString::CountChars()
- From: "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx>
- To: interfacekit@xxxxxxxxxxxxx
- Date: Fri, 15 Nov 2002 04:57:39 +0100 CET
"Erik Jaesler" <erik@xxxxxxxxxxxxxx> wrote:
> Just for fun, why does this test fail:
>
> BString empty;
> CPPUNIT=5FASSERT(empty.String() =3D=3D "");
I guess you shouldn't compare pointers, but you're right, it's hard to
see :-)
> Took me quite a while to see what was right under my nose, and
> reminded
> me of the Joel On Software article referred to on the OpenBeOS list
> once
> I got it.
Joel On Software is always a nice read, I can recommend everybody to
take a look!
Adios...
Axel.
- References:
- [interfacekit] Re: BString::CountChars()
- From: Erik Jaesler
Other related posts:
- » [interfacekit] BString::CountChars()
- » [interfacekit] Re: BString::CountChars()
- » [interfacekit] Re: BString::CountChars()
- » [interfacekit] Re: BString::CountChars()
- » [interfacekit] Re: BString::CountChars()
- » [interfacekit] Re: BString::CountChars()
- » [interfacekit] Re: BString::CountChars()
- » [interfacekit] Re: BString::CountChars()
- [interfacekit] Re: BString::CountChars()
- From: Erik Jaesler