[RFC] kshelltest
Oswald Buddenhagen
ossi at kde.org
Tue Sep 27 19:40:42 BST 2005
On Tue, Sep 27, 2005 at 08:31:26PM +0200, Oswald Buddenhagen wrote:
> On Tue, Sep 27, 2005 at 08:27:36PM +0200, David Faure wrote:
> > On Tuesday 27 September 2005 19:51, Thomas Braxton wrote:
> > > QStringList list;
> > > list << "this" << "is" << "a" << "test";
> > > COMPARE(KShell::joinArgs(list), QString("this is a test"));
> >
> > I guess it would be useful to test the less trivial cases too - e.g. an
> > argument with a space, a single quote, a double quote, etc.
> >
> but this is the trivial function that does not handle these cases
> specially. :)
>
bah, my memory is failing. the event was only two years ago ... i think
i should start worrying. :)
i made the function "clever" three months after implementing it, so some
more sophisticated tests certainly would not hurt.
--
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.
More information about the kde-core-devel
mailing list